(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
This commit is contained in:
@@ -296,7 +296,6 @@ struct Train : public Vehicle {
|
||||
WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; }
|
||||
void PlayLeaveStationSound() const;
|
||||
bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
|
||||
bool HasFront() const { return true; }
|
||||
int GetImage(Direction direction) const;
|
||||
int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; }
|
||||
int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
|
||||
|
Reference in New Issue
Block a user