summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-03 18:00:36 +0000
committerrubidium <rubidium@openttd.org>2008-07-03 18:00:36 +0000
commitf37a47c0cb3f09a717de2f1b02ffd84b2c5b61f7 (patch)
tree10e7f0116b6524ccb0179508ed0a42993b2cc1f0
parentaede445e2a042a59e8d3fb81fbbb3ca141aa5677 (diff)
downloadopenttd-f37a47c0cb3f09a717de2f1b02ffd84b2c5b61f7.tar.xz
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index fc540da80..817aace13 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -683,6 +683,8 @@ static void ShowScreenshotResult(bool b)
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 @@ static void MakeNewGameDone()
_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