diff options
author | glx <glx@openttd.org> | 2009-01-25 00:57:03 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-25 00:57:03 +0000 |
commit | 470da22ac3dd297766a3064b8e72aa8c601c74c7 (patch) | |
tree | a8b3e55a2f1168021a45917b6fbf5777c3476634 /src/engine_base.h | |
parent | 512cc98b35891a491b4e24a0a5f440f8b9e548d7 (diff) | |
download | openttd-470da22ac3dd297766a3064b8e72aa8c601c74c7.tar.xz |
(svn r15263) -Codechange: added Engine::GetCost() to remove some code duplication.
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index a0a2df468..d5fd93329 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -51,6 +51,7 @@ struct Engine : PoolItem<Engine, EngineID, &_Engine_pool> { inline bool IsValid() const { return this->info.climates != 0; } Money GetRunningCost() const; + Money GetCost() const; }; static inline bool IsEngineIndex(uint index) |