diff src/ship.h @ 6773:746c984c2dfe draft

(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
author maedhros <maedhros@openttd.org>
date Fri, 01 Jun 2007 12:03:10 +0000 (2007-06-01)
parents 431c5039b1f1
children e1c4f52f82cd
line wrap: on
line diff
--- a/src/ship.h
+++ b/src/ship.h
@@ -45,6 +45,7 @@
 	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
 	WindowClass GetVehicleListWindowClass() const { return WC_SHIPS_LIST; }
 	void PlayLeaveStationSound() const;
+	bool IsPrimaryVehicle() const { return true; }
 };
 
 #endif /* SHIP_H */