(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

@@ -47,6 +47,7 @@ struct Ship: public Vehicle {
bool IsPrimaryVehicle() const { return true; }
int GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
void Tick();
};