diff options
author | rubidium <rubidium@openttd.org> | 2007-08-29 21:27:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-29 21:27:16 +0000 |
commit | 3f3b013b99ac0378ed94098ca19e864d208880c7 (patch) | |
tree | c750fba2dc3e7efcc74cbccf329c29e874b3102e /src/train.h | |
parent | 99409d99d0cffdbd82aaa5f3a6f5da2c96623678 (diff) | |
download | openttd-3f3b013b99ac0378ed94098ca19e864d208880c7.tar.xz |
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train.h b/src/train.h index a64048fb8..5befad626 100644 --- a/src/train.h +++ b/src/train.h @@ -274,6 +274,7 @@ struct Train : public Vehicle { int GetImage(Direction direction) const; int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; } + Money GetRunningCost() const; void Tick(); }; |