(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.

This commit is contained in:
rubidium
2007-08-28 06:46:33 +00:00
parent 41a0bd2b74
commit 2179faf5c8
9 changed files with 14 additions and 4 deletions

View File

@@ -273,6 +273,7 @@ struct Train : public Vehicle {
bool HasFront() const { return true; }
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; }
void Tick();
};