summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-01 12:03:10 +0000
committermaedhros <maedhros@openttd.org>2007-06-01 12:03:10 +0000
commitfa548f1a6fbae6aa31afab2ed6513f8e858f46ec (patch)
treeecdd71bd76175d9e15732fad8068a2c2abcb1de2 /src/roadveh.h
parent2181e11c18ee1b01a54ec07db3b8291e35dbbe86 (diff)
downloadopenttd-fa548f1a6fbae6aa31afab2ed6513f8e858f46ec.tar.xz
(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 3db44ff45..f3c2f46d8 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -43,6 +43,7 @@ struct RoadVehicle : public Vehicle {
void UpdateDeltaXY(Direction direction);
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
WindowClass GetVehicleListWindowClass() const { return WC_ROADVEH_LIST; }
+ bool IsPrimaryVehicle() const { return true; }
};
#endif /* ROADVEH_H */