summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-26 12:56:48 +0000
committerrubidium <rubidium@openttd.org>2006-12-26 12:56:48 +0000
commit9560a1d9ec28080ab2fd49f760591da5fe85a08d (patch)
treeb5bcd33d161b6f6ae2e80e6b0e7ad2f3badc52ff /economy.c
parent80c3be09fce9f7c1ae41fa9f4984dd0941073feb (diff)
downloadopenttd-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 'economy.c')
-rw-r--r--economy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 9ced54475..97fc55c0d 100644
--- a/economy.c
+++ b/economy.c
@@ -420,7 +420,8 @@ static void PlayersCheckBankrupt(Player *p)
p->bankrupt_timeout = 0x456;
break;
} else if (owner == _local_player) {
- _local_player = _network_playas = PLAYER_SPECTATOR;
+ _network_playas = PLAYER_SPECTATOR;
+ SetLocalPlayer(PLAYER_SPECTATOR);
}
#ifdef ENABLE_NETWORK