diff options
author | rubidium <rubidium@openttd.org> | 2006-12-26 12:56:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-26 12:56:48 +0000 |
commit | 9560a1d9ec28080ab2fd49f760591da5fe85a08d (patch) | |
tree | b5bcd33d161b6f6ae2e80e6b0e7ad2f3badc52ff /genworld.c | |
parent | 80c3be09fce9f7c1ae41fa9f4984dd0941073feb (diff) | |
download | openttd-9560a1d9ec28080ab2fd49f760591da5fe85a08d.tar.xz |
(svn r7561) -Fix (FS#431): core and (patches) GUI were not in-sync with respect to autorenew settings. This is only a temporary fix, as the definite fix needs to move the autorenew settings to a per-company settings window.
Diffstat (limited to 'genworld.c')
-rw-r--r-- | genworld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/genworld.c b/genworld.c index 70bb983c6..e6c646b0d 100644 --- a/genworld.c +++ b/genworld.c @@ -133,7 +133,7 @@ static void *_GenerateWorld(void *arg) } ResetObjectToPlace(); - _local_player = _gw.lp; + SetLocalPlayer(_gw.lp); SetGeneratingWorldProgress(GWP_GAME_START, 1); /* Call any callback */ @@ -249,7 +249,7 @@ void GenerateWorld(int mode, uint size_x, uint size_y) _gw.threaded = true; /* This disables some commands and stuff */ - _local_player = PLAYER_SPECTATOR; + SetLocalPlayer(PLAYER_SPECTATOR); /* Make sure everything is done via OWNER_NONE */ _current_player = OWNER_NONE; |