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 | aa7a19fd49e0014f7d6c5513fa82f6d6a844ac2a (patch) | |
tree | 16a59029f061db1da724626081d3d7c2c5f0e273 | |
parent | e982100fe6ece587e29acccca8a4118ed5dff48c (diff) | |
download | openttd-aa7a19fd49e0014f7d6c5513fa82f6d6a844ac2a.tar.xz |
(svn r15656) -Fix: Changing dynamic_engines also requires reloading newgrfs as well as resetting the OverrideManager.
-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; } |