mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 02:51:37 +00:00
- fixed: Do not use BasicArmor's save percentage when no armor present.
This function is only for the Hexen status bar and printed incorrect values.
This commit is contained in:
parent
1161a17f00
commit
994bdc0b03
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class BaseStatusBar native ui
|
|||
}
|
||||
//Hexen counts basic armor also so we should too.
|
||||
let armor = BasicArmor(CPlayer.mo.FindInventory("BasicArmor"));
|
||||
if(armor != NULL)
|
||||
if(armor != NULL && armor.Amount > 0)
|
||||
{
|
||||
add += armor.SavePercent * 100;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue