(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.

This commit is contained in:
rubidium 2008-05-04 22:38:18 +00:00
parent 9eb498eb53
commit e6bc8fa3d8
1 changed files with 3 additions and 0 deletions

View File

@ -884,6 +884,9 @@ void SwitchMode(int new_mode)
SetDParamStr(0, GetSaveLoadErrorString());
ShowErrorMessage(INVALID_STRING_ID, STR_012D, 0, 0);
} else {
if (_saveload_mode == SLD_LOAD_SCENARIO) {
StartupEngines();
}
/* 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 */
SetLocalPlayer(_network_dedicated ? PLAYER_SPECTATOR : PLAYER_FIRST);