Skip to content
Permalink
Browse files

- fixed wrong display of Hexen AC for SBARINFO

Do not use BasicArmor's save percentage when no armor present
Applied change from 34c2c65 to old status bar definitions
  • Loading branch information
alexey-lysiuk committed Dec 1, 2019
1 parent 6023b69 commit 51c90f54a49459ca900f5c487c1e56968e4582b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/g_statusbar/sbarinfo_commands.cpp
@@ -1420,7 +1420,7 @@ class CommandDrawNumber : public CommandDrawString
add = Slots[0] + Slots[1] + Slots[2] + Slots[3] + Slots[4];
}
//Hexen counts basic armor also so we should too.
if(statusBar->armor != NULL)
if(statusBar->armor != nullptr && statusBar->armor->IntVar(NAME_Amount) > 0)
{
add += statusBar->armor->FloatVar(NAME_SavePercent) * 100;
}

0 comments on commit 51c90f5

Please sign in to comment.
You can’t perform that action at this time.