forked from mirror/OpenTTD
(svn r9764) -Codechange: replace some lookup tables by functions.
This commit is contained in:
@@ -246,6 +246,8 @@ struct Train : public Vehicle {
|
||||
const char *GetTypeString() { return "train"; }
|
||||
void MarkDirty();
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
|
||||
WindowClass GetVehicleListWindowClass() { return WC_TRAINS_LIST; }
|
||||
};
|
||||
|
||||
#endif /* TRAIN_H */
|
||||
|
Reference in New Issue
Block a user