Skip to content

Commit

Permalink
Fixed "buy map" button not showing up until after land hooks.
Browse files Browse the repository at this point in the history
This didn't cause a problem, but it looked weird when you were given
a dialog box at this time.
  • Loading branch information
onpon4 committed Apr 5, 2015
1 parent 9e89c1c commit b9bad80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/land.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,9 @@ void land_genWindows( int load, int changetab )
/* 1) Create main tab. */
land_createMainTab( land_getWid(LAND_WINDOW_MAIN) );

/* Add local system map button. */
land_checkAddMap();

/* 2) Set as landed and run hooks. */
if (!regen) {
landed = 1;
Expand Down Expand Up @@ -1334,9 +1337,6 @@ void land_genWindows( int load, int changetab )
if (changetab && land_windowsMap[ last_window ] != -1)
window_tabWinSetActive( land_wid, "tabLand", land_windowsMap[ last_window ] );

/* Add local system map button. */
land_checkAddMap();

/* Refuel if necessary. */
land_refuel();

Expand Down

0 comments on commit b9bad80

Please sign in to comment.