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
commite6bc8fa3d89248ef471f40736e5b02b8ea07bf33 (patch)
tree713ebf43ccc1d415db9c36ecfb086e96aa19a6f4 /src/openttd.cpp
parent9eb498eb5397d46b8a16eb59626900ebd1af2dc2 (diff)
downloadopenttd-e6bc8fa3d89248ef471f40736e5b02b8ea07bf33.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);