mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +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
541dcab89a
commit
34c2c65bb6
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,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