From 2fdeecaefa9abc714dad5c234461d2cefc379da0 Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Tue, 15 Oct 2013 00:44:21 +0100 Subject: [PATCH] [Fix] NAV computer should always be green when in hyperspace mode. --- src/player.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index fa27161..4473cac 100644 --- a/src/player.c +++ b/src/player.c @@ -892,13 +892,19 @@ void player_renderGUI(void) { /* Hyperspace target. */ sys = &systems_stack[cur_system->jumps[hyperspace_target]]; + /* Determine if we have to play the "enter hyperspace range" sound. */ i = space_canHyperspace(player); if((i != 0) && (i != can_jump)) if(!pilot_isFlag(player, PILOT_HYPERSPACE)) player_playSound(snd_jump, 1); can_jump = i; - c = can_jump ? &cConsole : NULL; + /* Determine the colour of the NAV text. */ + if(can_jump || pilot_isFlag(player, PILOT_HYPERSPACE) || + pilot_isFlag(player, PILOT_HYP_PREP) || + pilot_isFlag(player, PILOT_HYP_BEGIN)) + c = &cConsole; + else c = NULL; gl_printMid(NULL, (int)gui.nav.w, gui.nav.x, gui.nav.y - 5, c, "Hyperspace");