summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-04 22:38:18 +0000
committerrubidium <rubidium@openttd.org>2008-05-04 22:38:18 +0000
commitc878af48413f2783add831ed5f0d5f31b8e47e6f (patch)
tree713ebf43ccc1d415db9c36ecfb086e96aa19a6f4 /src/openttd.cpp
parent5b1e42388966958b1fb1451798e30c8f9e48c00b (diff)
downloadopenttd-c878af48413f2783add831ed5f0d5f31b8e47e6f.tar.xz
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
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);