equal
deleted
inserted
replaced
681 |
681 |
682 } |
682 } |
683 |
683 |
684 static void MakeNewGameDone() |
684 static void MakeNewGameDone() |
685 { |
685 { |
|
686 SettingsDisableElrail(_settings_game.vehicle.disable_elrails); |
|
687 |
686 /* In a dedicated server, the server does not play */ |
688 /* In a dedicated server, the server does not play */ |
687 if (_network_dedicated) { |
689 if (_network_dedicated) { |
688 SetLocalPlayer(PLAYER_SPECTATOR); |
690 SetLocalPlayer(PLAYER_SPECTATOR); |
689 return; |
691 return; |
690 } |
692 } |
694 |
696 |
695 SetLocalPlayer(PLAYER_FIRST); |
697 SetLocalPlayer(PLAYER_FIRST); |
696 _current_player = _local_player; |
698 _current_player = _local_player; |
697 DoCommandP(0, (_settings_client.gui.autorenew << 15 ) | (_settings_client.gui.autorenew_months << 16) | 4, _settings_client.gui.autorenew_money, NULL, CMD_SET_AUTOREPLACE); |
699 DoCommandP(0, (_settings_client.gui.autorenew << 15 ) | (_settings_client.gui.autorenew_months << 16) | 4, _settings_client.gui.autorenew_money, NULL, CMD_SET_AUTOREPLACE); |
698 |
700 |
699 SettingsDisableElrail(_settings_game.vehicle.disable_elrails); |
|
700 InitializeRailGUI(); |
701 InitializeRailGUI(); |
701 |
702 |
702 #ifdef ENABLE_NETWORK |
703 #ifdef ENABLE_NETWORK |
703 /* We are the server, we start a new player (not dedicated), |
704 /* We are the server, we start a new player (not dedicated), |
704 * so set the default password *if* needed. */ |
705 * so set the default password *if* needed. */ |