mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- fixed wrong display of Hexen AC for SBARINFO
Do not use BasicArmor's save percentage when no armor present
Applied change from 34c2c65bb6
to old status bar definitions
This commit is contained in:
parent
6023b69693
commit
51c90f54a4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue