diff options
author | frosch <frosch@openttd.org> | 2011-02-05 16:07:23 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-05 16:07:23 +0000 |
commit | 915e339d0f395305ec722925bfd8f4fdd09f30a3 (patch) | |
tree | cf6982b3ae86b563f6868379f8f6240b658d6130 /src/engine_base.h | |
parent | a4b08dddd10062f49352b5aee49e392f95e281e2 (diff) | |
download | openttd-915e339d0f395305ec722925bfd8f4fdd09f30a3.tar.xz |
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index 366831ad7..78a647139 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -114,6 +114,8 @@ struct EngineOverrideManager : SmallVector<EngineIDMapping, 256> { void ResetToDefaultMapping(); EngineID GetID(VehicleType type, uint16 grf_local_id, uint32 grfid); + + static bool ResetToCurrentNewGRFConfig(); }; extern EngineOverrideManager _engine_mngr; |