From fcd4926d5d41d6b25915920f2af55d7954ca49dd Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 27 Jul 2014 01:20:46 +0000 Subject: [PATCH] Fix cosmetic bug in vulcan ammo display If the player has a gauss cannon, vulcan ammo, and no vulcan cannon, and has never selected the gauss cannon, gauges showed 'A'. 'A' should appear only if neither weapon is available. Use 'G' in this situation. --- similar/main/gauges.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/similar/main/gauges.cpp b/similar/main/gauges.cpp index c471d2f75..e4421b6ac 100644 --- a/similar/main/gauges.cpp +++ b/similar/main/gauges.cpp @@ -1269,7 +1269,7 @@ static void hud_printf_vulcan_ammo(const int x, const int y) hud_set_fontcolor_gray(); char c; #if defined(DXX_BUILD_DESCENT_II) - if ((primary_weapon_flags & gauss_mask) && Primary_last_was_super[VULCAN_INDEX]) + if ((primary_weapon_flags & gauss_mask) && (Primary_last_was_super[VULCAN_INDEX] || !(primary_weapon_flags & vulcan_mask))) c = 'G'; else #endif