(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
This commit is contained in:
@@ -135,6 +135,7 @@ struct Aircraft : public Vehicle {
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; }
|
||||
WindowClass GetVehicleListWindowClass() const { return WC_AIRCRAFT_LIST; }
|
||||
bool IsPrimaryVehicle() const { return IsNormalAircraft(this); }
|
||||
};
|
||||
|
||||
#endif /* AIRCRAFT_H */
|
||||
|
Reference in New Issue
Block a user