diff options
author | frosch <frosch@openttd.org> | 2009-03-09 21:33:05 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-03-09 21:33:05 +0000 |
commit | 4cc20fe0ae4ae56376c74fbc992ce0c3a143e72c (patch) | |
tree | 16a59029f061db1da724626081d3d7c2c5f0e273 /src | |
parent | 1c9749dba842da7557a8160f3c4929a906a006c7 (diff) | |
download | openttd-4cc20fe0ae4ae56376c74fbc992ce0c3a143e72c.tar.xz |
(svn r15656) -Fix: Changing dynamic_engines also requires reloading newgrfs as well as resetting the OverrideManager.
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index f0731aa9a..dd444962f 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -58,6 +58,8 @@ #include "settings_func.h" #include "ini_type.h" #include "ai/ai_config.hpp" +#include "newgrf.h" +#include "engine_base.h" #include "void_map.h" #include "station_base.h" @@ -1151,6 +1153,11 @@ static bool ChangeDynamicEngines(int32 p1) return false; } } + + /* Reset the engines, they will get new EngineIDs */ + _engine_mngr.ResetToDefaultMapping(); + ReloadNewGRFData(); + return true; } |