Skip to content
Permalink
Browse files

- 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.
  • Loading branch information...
coelckers committed Aug 10, 2019
1 parent 541dcab commit 34c2c65bb6e631518addb67470dcf61f5a3f080b
Showing with 1 addition and 1 deletion.
  1. +1 −1 wadsrc/static/zscript/ui/statusbar/statusbar.zs
@@ -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;
}

0 comments on commit 34c2c65

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