summaryrefslogtreecommitdiff
path: root/network_client.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 /network_client.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 'network_client.c')
-rw-r--r--network_client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/network_client.c b/network_client.c
index c0eb71751..22d23720e 100644
--- a/network_client.c
+++ b/network_client.c
@@ -509,7 +509,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP)
if (_network_playas == PLAYER_NEW_COMPANY || !IsValidPlayer(_network_playas) ||
!GetPlayer(_network_playas)->is_active) {
- _local_player = PLAYER_SPECTATOR;
+ SetLocalPlayer(PLAYER_SPECTATOR);
if (_network_playas == PLAYER_SPECTATOR) {
// The client wants to be a spectator..
@@ -521,10 +521,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP)
}
} else {
// take control over an existing company
- _local_player = _network_playas;
- _patches.autorenew = GetPlayer(_local_player)->engine_renew;
- _patches.autorenew_months = GetPlayer(_local_player)->engine_renew_months;
- _patches.autorenew_money = GetPlayer(_local_player)->engine_renew_money;
+ SetLocalPlayer(_network_playas);
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
}
}