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 | e8b5f4986147fa7036653abd82052f29ad27b85a (patch) | |
tree | 9ca7c83bbeeb0c45437a57aa25919d6493f228ac /src/engine_base.h | |
parent | 7e7fab1b184f8d62af7e1fb55e7ba15c99281edc (diff) | |
download | openttd-e8b5f4986147fa7036653abd82052f29ad27b85a.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) |