mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
- Added ammo1capacity and ammo2capacity to drawnumber.
SVN r3277 (trunk)
This commit is contained in:
parent
bdbea0da32
commit
ba4630f0df
1 changed files with 24 additions and 0 deletions
|
@ -890,6 +890,10 @@ class CommandDrawNumber : public CommandDrawString
|
||||||
value = AMMO1;
|
value = AMMO1;
|
||||||
else if(sc.Compare("ammo2"))
|
else if(sc.Compare("ammo2"))
|
||||||
value = AMMO2;
|
value = AMMO2;
|
||||||
|
else if(sc.Compare("ammo1capacity"))
|
||||||
|
value = AMMO1CAPACITY;
|
||||||
|
else if(sc.Compare("ammo2capacity"))
|
||||||
|
value = AMMO2CAPACITY;
|
||||||
else if(sc.Compare("score"))
|
else if(sc.Compare("score"))
|
||||||
value = SCORE;
|
value = SCORE;
|
||||||
else if(sc.Compare("ammo")) //request the next string to be an ammo type
|
else if(sc.Compare("ammo")) //request the next string to be an ammo type
|
||||||
|
@ -1124,6 +1128,24 @@ class CommandDrawNumber : public CommandDrawString
|
||||||
num = 0;
|
num = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case AMMO1CAPACITY:
|
||||||
|
if(statusBar->ammo1 == NULL) //no ammo, do not draw
|
||||||
|
{
|
||||||
|
str = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
num = statusBar->ammo1->MaxAmount;
|
||||||
|
break;
|
||||||
|
case AMMO2CAPACITY:
|
||||||
|
if(statusBar->ammo2 == NULL) //no ammo, do not draw
|
||||||
|
{
|
||||||
|
str = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
num = statusBar->ammo2->MaxAmount;
|
||||||
|
break;
|
||||||
case AMMOCAPACITY:
|
case AMMOCAPACITY:
|
||||||
{
|
{
|
||||||
AInventory* item = statusBar->CPlayer->mo->FindInventory(inventoryItem);
|
AInventory* item = statusBar->CPlayer->mo->FindInventory(inventoryItem);
|
||||||
|
@ -1283,6 +1305,8 @@ class CommandDrawNumber : public CommandDrawString
|
||||||
AMMO1,
|
AMMO1,
|
||||||
AMMO2,
|
AMMO2,
|
||||||
AMMO,
|
AMMO,
|
||||||
|
AMMO1CAPACITY,
|
||||||
|
AMMO2CAPACITY,
|
||||||
AMMOCAPACITY,
|
AMMOCAPACITY,
|
||||||
FRAGS,
|
FRAGS,
|
||||||
INVENTORY,
|
INVENTORY,
|
||||||
|
|
Loading…
Reference in a new issue