[Change] Explicitly set NAV target at end of route to none.
This commit is contained in:
parent
4f22f63f86
commit
ea08de1644
12
src/map.c
12
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.
|
* @brief Check to see if the map is open.
|
||||||
* @return 0 if map is closed, non-zero if it's 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.
|
* @brief Try to select the current system.
|
||||||
*/
|
*/
|
||||||
static void map_selectCur(void) {
|
static void map_selectCur(void) {
|
||||||
@ -571,7 +567,9 @@ static void map_selectCur(void) {
|
|||||||
map_selected = -1;
|
map_selected = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update the map after a jump. */
|
/**
|
||||||
|
* @brief Update the map after a jump.
|
||||||
|
*/
|
||||||
void map_jump(void) {
|
void map_jump(void) {
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
@ -588,6 +586,8 @@ void map_jump(void) {
|
|||||||
/* Path is empty. */
|
/* Path is empty. */
|
||||||
free(map_path);
|
free(map_path);
|
||||||
map_path = NULL;
|
map_path = NULL;
|
||||||
|
planet_target = -1;
|
||||||
|
hyperspace_target = -1;
|
||||||
} else {
|
} else {
|
||||||
/* Get rid of bottom of the path. */
|
/* Get rid of bottom of the path. */
|
||||||
memmove(&map_path[0], &map_path[1], sizeof(StarSystem*) * map_npath);
|
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.
|
* @brief Selects the system in the map.
|
||||||
* @param sys System to select.
|
* @param sys System to select.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user