forked from mirror/OpenTTD
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user