diff options
author | glx <glx@openttd.org> | 2009-01-24 20:14:15 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-24 20:14:15 +0000 |
commit | 9b73303b4d4c91cb0fcee44679e5443bc8c5fa0b (patch) | |
tree | 9ca7c83bbeeb0c45437a57aa25919d6493f228ac /src/engine_base.h | |
parent | af7b7867a7565dc3c18242d9cfad1912b6ef4e40 (diff) | |
download | openttd-9b73303b4d4c91cb0fcee44679e5443bc8c5fa0b.tar.xz |
(svn r15261) -Add: added Engine::GetRunningCost() to remove some code duplication. Also stops AIs decrementing vehicle counter of first company
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index aee07e81a..a0a2df468 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -6,6 +6,7 @@ #define ENGINE_BASE_H #include "engine_type.h" +#include "economy_type.h" #include "oldpool.h" DECLARE_OLD_POOL(Engine, Engine, 6, 10000) @@ -48,6 +49,8 @@ struct Engine : PoolItem<Engine, EngineID, &_Engine_pool> { ~Engine(); inline bool IsValid() const { return this->info.climates != 0; } + + Money GetRunningCost() const; }; static inline bool IsEngineIndex(uint index) |