diff options
author | frosch <frosch@openttd.org> | 2012-11-12 20:13:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-12 20:13:51 +0000 |
commit | 4471f6bca8fa8c703b9676b1465cbc97875d2aa2 (patch) | |
tree | 59ea6bd04e099e2e0622e77f081aff87f11c6c0a /src | |
parent | 96540079e790d293b7a5ad699ee310ff9d90546f (diff) | |
download | openttd-4471f6bca8fa8c703b9676b1465cbc97875d2aa2.tar.xz |
(svn r24716) -Feature(ette): Reset engine pool when starting a scenario.
Diffstat (limited to 'src')
-rw-r--r-- | src/openttd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index a286a22cb..183b8a97c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1055,7 +1055,8 @@ void SwitchToMode(SwitchMode new_mode) ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, WL_ERROR); } else { if (_saveload_mode == SLD_LOAD_SCENARIO) { - StartupEngines(); + /* Reset engine pool to simplify changing engine NewGRFs in scenario editor. */ + EngineOverrideManager::ResetToCurrentNewGRFConfig(); } /* Update the local company for a loaded game. It is either always * company #1 (eg 0) or in the case of a dedicated server a spectator */ |