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
|
@ -298,11 +298,8 @@ class RedneckStatusBar : DukeCommonStatusBar
|
||||||
}
|
}
|
||||||
else
|
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));
|
DrawImage(texname, (18 + i * 32, top - 6.5), DI_ITEM_OFFSETS, scale:(sbscale, sbscale));
|
||||||
|
|
Loading…
Reference in a new issue