Changeset - r19761:9cb2abd2b89f
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-11-12 20:13:51
frosch@openttd.org
(svn r24716) -Feature(ette): Reset engine pool when starting a scenario.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)