summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-09 11:23:49 +0000
committerrubidium <rubidium@openttd.org>2007-09-09 11:23:49 +0000
commit643ffb270c53cc97c331673ff5fcf074170b9f95 (patch)
treef20482e13f3272992a0ec242e6105684bc4d19b0 /src/train.h
parent1f1ce4ac5b2051a516fbb26a73b1b1fb50cbfb0c (diff)
downloadopenttd-643ffb270c53cc97c331673ff5fcf074170b9f95.tar.xz
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
Diffstat (limited to 'src/train.h')
-rw-r--r--src/train.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h
index 1751e07e7..51c6bf2a8 100644
--- a/src/train.h
+++ b/src/train.h
@@ -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; }