mirror of https://github.com/OpenTTD/OpenTTD
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
parent
aede445e2a
commit
f37a47c0cb
|
@ -683,6 +683,8 @@ static void ShowScreenshotResult(bool b)
|
||||||
|
|
||||||
static void MakeNewGameDone()
|
static void MakeNewGameDone()
|
||||||
{
|
{
|
||||||
|
SettingsDisableElrail(_settings_game.vehicle.disable_elrails);
|
||||||
|
|
||||||
/* In a dedicated server, the server does not play */
|
/* In a dedicated server, the server does not play */
|
||||||
if (_network_dedicated) {
|
if (_network_dedicated) {
|
||||||
SetLocalPlayer(PLAYER_SPECTATOR);
|
SetLocalPlayer(PLAYER_SPECTATOR);
|
||||||
|
@ -696,7 +698,6 @@ static void MakeNewGameDone()
|
||||||
_current_player = _local_player;
|
_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);
|
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();
|
InitializeRailGUI();
|
||||||
|
|
||||||
#ifdef ENABLE_NETWORK
|
#ifdef ENABLE_NETWORK
|
||||||
|
|
Loading…
Reference in New Issue