mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- 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:
parent
e03d532670
commit
cb01fb0cf2
1 changed files with 2 additions and 5 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue