summaryrefslogtreecommitdiff
path: root/src/roadveh.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
commit40b871410b557aa8fdf6c2ea1d872a2563c922ab (patch)
treef20482e13f3272992a0ec242e6105684bc4d19b0 /src/roadveh.h
parentefea7622acb6dbf5b4a75be3e0b0c6d016e5feb1 (diff)
downloadopenttd-40b871410b557aa8fdf6c2ea1d872a2563c922ab.tar.xz
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 1c545ea43..46e14bac4 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -69,7 +69,6 @@ struct RoadVehicle : public Vehicle {
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
WindowClass GetVehicleListWindowClass() const { return WC_ROADVEH_LIST; }
bool IsPrimaryVehicle() const { return IsRoadVehFront(this); }
- bool HasFront() 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; }