forked from mirror/OpenTTD
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
This commit is contained in:
@@ -884,6 +884,9 @@ void SwitchMode(int new_mode)
|
|||||||
SetDParamStr(0, GetSaveLoadErrorString());
|
SetDParamStr(0, GetSaveLoadErrorString());
|
||||||
ShowErrorMessage(INVALID_STRING_ID, STR_012D, 0, 0);
|
ShowErrorMessage(INVALID_STRING_ID, STR_012D, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
if (_saveload_mode == SLD_LOAD_SCENARIO) {
|
||||||
|
StartupEngines();
|
||||||
|
}
|
||||||
/* Update the local player for a loaded game. It is either always
|
/* Update the local player for a loaded game. It is either always
|
||||||
* player #1 (eg 0) or in the case of a dedicated server a spectator */
|
* player #1 (eg 0) or in the case of a dedicated server a spectator */
|
||||||
SetLocalPlayer(_network_dedicated ? PLAYER_SPECTATOR : PLAYER_FIRST);
|
SetLocalPlayer(_network_dedicated ? PLAYER_SPECTATOR : PLAYER_FIRST);
|
||||||
|
Reference in New Issue
Block a user