[Fix] NAV computer should always be green when in hyperspace mode.

This commit is contained in:
Allanis 2013-10-15 00:44:21 +01:00
parent 1aa4ad5a28
commit 2fdeecaefa

View File

@ -892,13 +892,19 @@ void player_renderGUI(void) {
/* Hyperspace target. */ /* Hyperspace target. */
sys = &systems_stack[cur_system->jumps[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); i = space_canHyperspace(player);
if((i != 0) && (i != can_jump)) if((i != 0) && (i != can_jump))
if(!pilot_isFlag(player, PILOT_HYPERSPACE)) if(!pilot_isFlag(player, PILOT_HYPERSPACE))
player_playSound(snd_jump, 1); player_playSound(snd_jump, 1);
can_jump = i; 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, gl_printMid(NULL, (int)gui.nav.w, gui.nav.x, gui.nav.y - 5,
c, "Hyperspace"); c, "Hyperspace");