diff options
author | rubidium <rubidium@openttd.org> | 2008-05-04 22:38:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-04 22:38:18 +0000 |
commit | e6bc8fa3d89248ef471f40736e5b02b8ea07bf33 (patch) | |
tree | 713ebf43ccc1d415db9c36ecfb086e96aa19a6f4 | |
parent | 9eb498eb5397d46b8a16eb59626900ebd1af2dc2 (diff) | |
download | openttd-e6bc8fa3d89248ef471f40736e5b02b8ea07bf33.tar.xz |
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
-rw-r--r-- | src/openttd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 6a6ec5a13..73ebf1900 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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); |