Client: fix low ammo text taking priority over no ammo

This commit is contained in:
unknown 2022-04-23 22:57:40 -04:00
parent 52e212f6cd
commit d7d1f1e050

View file

@ -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.