[Fix] Bug with changing hyperspace path after selecting a route.

This commit is contained in:
Allanis 2013-07-10 18:32:13 +01:00
parent 2ec09b0ee3
commit abab808387
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,10 @@ void map_open(void) {
/* Mark systems as needed. */ /* Mark systems as needed. */
mission_sysMark(); mission_sysMark();
/* Attempt to select current map if none is selected. */
if(map_selected == -1)
map_selectCur();
map_wid = window_create("Star Map", -1, -1, WINDOW_WIDTH, WINDOW_HEIGHT); map_wid = window_create("Star Map", -1, -1, WINDOW_WIDTH, WINDOW_HEIGHT);
window_addText(map_wid, -20, -20, 100, 20, 1, "txtSysname", window_addText(map_wid, -20, -20, 100, 20, 1, "txtSysname",

View File

@ -1341,6 +1341,7 @@ void player_targetHyperspace(void) {
planet_target = -1; /* Remove planet target. */ planet_target = -1; /* Remove planet target. */
player_rmFlag(PLAYER_LANDACK); /* Get rid of landing permission. */ player_rmFlag(PLAYER_LANDACK); /* Get rid of landing permission. */
hyperspace_target++; hyperspace_target++;
map_clear(); /* Clear the current map path. */
if(hyperspace_target >= cur_system->njumps) if(hyperspace_target >= cur_system->njumps)
hyperspace_target = -1; hyperspace_target = -1;