mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- fixed: The ammo display in Doom should not be drawn if the current weapon does not use ammo.
This commit is contained in:
parent
54764c136d
commit
699d4882d5
1 changed files with 3 additions and 5 deletions
|
@ -48,10 +48,8 @@ class DoomStatusBar : BaseStatusBar
|
||||||
DrawImage("STTPRCNT", (90, 171), DI_ITEM_OFFSETS);
|
DrawImage("STTPRCNT", (90, 171), DI_ITEM_OFFSETS);
|
||||||
DrawImage("STTPRCNT", (221, 171), DI_ITEM_OFFSETS);
|
DrawImage("STTPRCNT", (221, 171), DI_ITEM_OFFSETS);
|
||||||
|
|
||||||
Inventory a1, a2;
|
Inventory a1 = GetCurrentAmmo();
|
||||||
int amt1;
|
if (a1 != null) DrawString(mHUDFont, FormatNumber(a1.Amount, 3), (44, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
||||||
[a1, a2, amt1] = GetCurrentAmmo();
|
|
||||||
DrawString(mHUDFont, FormatNumber(amt1, 3), (44, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
|
||||||
DrawString(mHUDFont, FormatNumber(CPlayer.health, 3), (90, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
DrawString(mHUDFont, FormatNumber(CPlayer.health, 3), (90, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
||||||
DrawString(mHUDFont, FormatNumber(GetArmorAmount(), 3), (221, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
DrawString(mHUDFont, FormatNumber(GetArmorAmount(), 3), (221, 171), DI_TEXT_ALIGN_RIGHT|DI_NOSHADOW);
|
||||||
|
|
||||||
|
@ -76,7 +74,7 @@ class DoomStatusBar : BaseStatusBar
|
||||||
else image = "";
|
else image = "";
|
||||||
DrawImage(image, (239, 191), DI_ITEM_OFFSETS);
|
DrawImage(image, (239, 191), DI_ITEM_OFFSETS);
|
||||||
|
|
||||||
int maxamt;
|
int amt1, maxamt;
|
||||||
[amt1, maxamt] = GetAmount("Clip");
|
[amt1, maxamt] = GetAmount("Clip");
|
||||||
DrawString(mIndexFont, FormatNumber(amt1, 3), (288, 173), DI_TEXT_ALIGN_RIGHT);
|
DrawString(mIndexFont, FormatNumber(amt1, 3), (288, 173), DI_TEXT_ALIGN_RIGHT);
|
||||||
DrawString(mIndexFont, FormatNumber(maxamt, 3), (314, 173), DI_TEXT_ALIGN_RIGHT);
|
DrawString(mIndexFont, FormatNumber(maxamt, 3), (314, 173), DI_TEXT_ALIGN_RIGHT);
|
||||||
|
|
Loading…
Reference in a new issue