diff options
author | smatz <smatz@openttd.org> | 2009-05-18 19:32:16 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-18 19:32:16 +0000 |
commit | 70aab8bf0487ef506afbeaa6cb8e46309387df84 (patch) | |
tree | e0c2fdd130c4c93d249ca7ecb2860e454d6b4e7f /src/engine_base.h | |
parent | a0ff6363e6429fded7bd39adacd14a191ef00526 (diff) | |
download | openttd-70aab8bf0487ef506afbeaa6cb8e46309387df84.tar.xz |
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index 0f6d70f90..8e71c573d 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -82,11 +82,6 @@ struct EngineOverrideManager : SmallVector<EngineIDMapping, 256> { extern EngineOverrideManager _engine_mngr; -static inline bool IsEngineIndex(uint index) -{ - return index < Engine::GetPoolSize(); -} - #define FOR_ALL_ENGINES_FROM(e, start) for (e = Engine::Get(start); e != NULL; e = (e->index + 1U < Engine::GetPoolSize()) ? Engine::Get(e->index + 1U) : NULL) if (e->IsValid()) #define FOR_ALL_ENGINES(e) FOR_ALL_ENGINES_FROM(e, 0) |