mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-21 10:21:47 +00:00
Client: fix low ammo text taking priority over no ammo
This commit is contained in:
parent
52e212f6cd
commit
d7d1f1e050
1 changed files with 6 additions and 6 deletions
|
@ -140,18 +140,18 @@ void() HUD_AmmoString =
|
|||
message = "Reload";
|
||||
textcolor = [1, 1, 1];
|
||||
}
|
||||
// Display LOW AMMO if both are low.
|
||||
else if (reserve_is_low == true && mag_is_low == true)
|
||||
{
|
||||
message = "LOW AMMO";
|
||||
textcolor = [219/255, 203/255, 19/255];
|
||||
}
|
||||
// Report NO AMMO if both are empty
|
||||
else if (getstatf(STAT_CURRENTMAG) <= 0 && getstatf(STAT_AMMO) <= 0)
|
||||
{
|
||||
message = "NO AMMO";
|
||||
textcolor = [215/255, 0, 0];
|
||||
}
|
||||
// Display LOW AMMO if both are low.
|
||||
else if (reserve_is_low == true && mag_is_low == true)
|
||||
{
|
||||
message = "LOW AMMO";
|
||||
textcolor = [219/255, 203/255, 19/255];
|
||||
}
|
||||
}
|
||||
|
||||
// Blink the text and draw it.
|
||||
|
|
Loading…
Reference in a new issue