From 5e4c9ad875bd3181139b214ddc214a0578998da6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 May 2007 09:29:41 +0000 Subject: (svn r9764) -Codechange: replace some lookup tables by functions. --- src/train.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/train.h') diff --git a/src/train.h b/src/train.h index 317d93c2d..eaebf04bc 100644 --- a/src/train.h +++ b/src/train.h @@ -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 */ -- cgit v1.2.3-54-g00ecf