Mercurial > hg > openttd
changeset 9617:67791dec09fd draft
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 03 Jul 2008 18:00:36 +0000 |
parents | e183bfef543f |
children | c3886802471d |
files | src/openttd.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -683,6 +683,8 @@ static void MakeNewGameDone() { + SettingsDisableElrail(_settings_game.vehicle.disable_elrails); + /* In a dedicated server, the server does not play */ if (_network_dedicated) { SetLocalPlayer(PLAYER_SPECTATOR); @@ -696,7 +698,6 @@ _current_player = _local_player; DoCommandP(0, (_settings_client.gui.autorenew << 15 ) | (_settings_client.gui.autorenew_months << 16) | 4, _settings_client.gui.autorenew_money, NULL, CMD_SET_AUTOREPLACE); - SettingsDisableElrail(_settings_game.vehicle.disable_elrails); InitializeRailGUI(); #ifdef ENABLE_NETWORK