diff options
author | bjarni <bjarni@openttd.org> | 2005-08-06 16:07:22 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-08-06 16:07:22 +0000 |
commit | ed8e2bac048a6c4ba73e226b7a8332759bab0697 (patch) | |
tree | 4628a0df8999b185f9edb643da5024f1ae22e3bc /network_client.c | |
parent | ddb58492f300333751d4054e3555845ddc3df307 (diff) | |
download | openttd-ed8e2bac048a6c4ba73e226b7a8332759bab0697.tar.xz |
(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside
-This means that one company can only have one setting for renew and replacing
more clients will not fight due to different settings anymore
-This is a needed step in the line to fix autoreplacing dualheaded locomotives
NOTE: savegame revision bump (peter1138 + me in coop)
Diffstat (limited to 'network_client.c')
-rw-r--r-- | network_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/network_client.c b/network_client.c index 2f7af9087..b64e8358f 100644 --- a/network_client.c +++ b/network_client.c @@ -527,6 +527,9 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP) } else { // take control over an existing company _local_player = _network_playas - 1; + _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; DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); } } |