From ea08de16440c0256cdba0574537ecc744c2bfaac Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 19 May 2014 18:31:55 +0100 Subject: [PATCH] [Change] Explicitly set NAV target at end of route to none. --- src/map.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/map.c b/src/map.c index bab7b46..d7ce5ed 100644 --- a/src/map.c +++ b/src/map.c @@ -304,8 +304,6 @@ static void map_update(unsigned int wid) { } /** - * @fn int map_isOpen(void) - * * @brief Check to see if the map is open. * @return 0 if map is closed, non-zero if it's open. */ @@ -559,8 +557,6 @@ void map_clear(void) { } /** - * @fn static void map_selectCur(void) - * * @brief Try to select the current system. */ static void map_selectCur(void) { @@ -571,7 +567,9 @@ static void map_selectCur(void) { map_selected = -1; } -/* Update the map after a jump. */ +/** + * @brief Update the map after a jump. + */ void map_jump(void) { int j; @@ -588,6 +586,8 @@ void map_jump(void) { /* Path is empty. */ free(map_path); map_path = NULL; + planet_target = -1; + hyperspace_target = -1; } else { /* Get rid of bottom of the path. */ memmove(&map_path[0], &map_path[1], sizeof(StarSystem*) * map_npath); @@ -606,8 +606,6 @@ void map_jump(void) { } /** - * @fn void map_select(StarSystem* sys) - * * @brief Selects the system in the map. * @param sys System to select. */