- 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

@ -297,13 +297,10 @@ class RedneckStatusBar : DukeCommonStatusBar
format = String.Format("%d", p.ammo_amount[RRWpn.CHICKEN_WEAPON]);
}
else
{
if (p.gotweapon[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));