diff options
author | rubidium <rubidium@openttd.org> | 2007-05-02 09:29:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-02 09:29:41 +0000 |
commit | dce7dcb6649dca7a05f5abc5b006822a05e06056 (patch) | |
tree | 978891d08beaf2b636b81a38b9c296680f5fdec6 /src/train.h | |
parent | 1bea3b55a672185f8e65430af8ec86ff5eef3704 (diff) | |
download | openttd-dce7dcb6649dca7a05f5abc5b006822a05e06056.tar.xz |
(svn r9764) -Codechange: replace some lookup tables by functions.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |