From d7d1f1e05063037e979f693b41dfaa26bcf0cdc3 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 23 Apr 2022 22:57:40 -0400 Subject: [PATCH] Client: fix low ammo text taking priority over no ammo --- source/client/hud.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/client/hud.qc b/source/client/hud.qc index fd2c096..336a4ea 100644 --- a/source/client/hud.qc +++ b/source/client/hud.qc @@ -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.