- Duke/RR: Remove check p.gotweapon[] check in DrawWeaponBar() that was causing weapon bar to display incorrect tiles and values.

* Fixes https://forum.zdoom.org/viewtopic.php?f=340&t=72541.
This commit is contained in:
Mitchell Richters 2021-07-24 16:18:06 +10:00
parent e03d532670
commit cb01fb0cf2

View file

@ -298,11 +298,8 @@ class RedneckStatusBar : DukeCommonStatusBar
}
else
{
if (p.gotweapon[i+1])
{
texname = "AMMO_ICON" .. i;
format = String.Format("%d", p.ammo_amount[i+1]);
}
texname = "AMMO_ICON" .. i;
format = String.Format("%d", p.ammo_amount[i+1]);
}
DrawImage(texname, (18 + i * 32, top - 6.5), DI_ITEM_OFFSETS, scale:(sbscale, sbscale));