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 | c1cf3934fa5bd523dd1df01cf505c9f06927701d (patch) | |
tree | a8b3e55a2f1168021a45917b6fbf5777c3476634 /src/engine_base.h | |
parent | 80ee3d3440233b50bbe818b2f74f6aac8841edfa (diff) | |
download | openttd-c1cf3934fa5bd523dd1df01cf505c9f06927701d.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) |