From 1487fe5db5458107aa702d122bab262a2b8d3bcc Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Sat, 22 Oct 2016 14:03:16 -0400 Subject: [PATCH] fix threat gauge color in fs2 demo --- src/hud/hudreticle.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/hud/hudreticle.cpp b/src/hud/hudreticle.cpp index 6f28340..1236205 100644 --- a/src/hud/hudreticle.cpp +++ b/src/hud/hudreticle.cpp @@ -756,7 +756,12 @@ void hud_show_lock_threat() frame_offset = 0; } +#ifdef FS2_DEMO + // demo .hcf has gauge color wrong, so just match center reticle instead + hud_set_gauge_color(HUD_CENTER_RETICLE); +#else hud_set_gauge_color(HUD_THREAT_GAUGE); +#endif GR_AABITMAP(Reticle_gauges[RETICLE_LOCK_WARN].first_frame+frame_offset, Reticle_frame_coords[gr_screen.res][RETICLE_LOCK_WARN][0], Reticle_frame_coords[gr_screen.res][RETICLE_LOCK_WARN][1]); @@ -797,7 +802,12 @@ void hud_show_dumbfire_threat() frame_offset = 0; } +#ifdef FS2_DEMO + // demo .hcf has gauge color wrong, so just match center reticle instead + hud_set_gauge_color(HUD_CENTER_RETICLE); +#else hud_set_gauge_color(HUD_THREAT_GAUGE); +#endif GR_AABITMAP(Reticle_gauges[RETICLE_LASER_WARN].first_frame + frame_offset, Reticle_frame_coords[gr_screen.res][RETICLE_LASER_WARN][0], Reticle_frame_coords[gr_screen.res][RETICLE_LASER_WARN][1]); } -- 2.39.2