(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
authorrubidium
Thu, 03 Jul 2008 18:00:36 +0000
changeset 11115 026e6754540e
parent 11114 36a38b287c05
child 11116 879c1c2d3db3
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
src/openttd.cpp
--- a/src/openttd.cpp	Thu Jul 03 01:08:35 2008 +0000
+++ b/src/openttd.cpp	Thu Jul 03 18:00:36 2008 +0000
@@ -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