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/roadveh.h | |
parent | 1bea3b55a672185f8e65430af8ec86ff5eef3704 (diff) | |
download | openttd-dce7dcb6649dca7a05f5abc5b006822a05e06056.tar.xz |
(svn r9764) -Codechange: replace some lookup tables by functions.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index 340a74076..c3d8cbf94 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -41,6 +41,8 @@ struct RoadVehicle : public Vehicle { const char *GetTypeString() { return "road vehicle"; } void MarkDirty(); void UpdateDeltaXY(Direction direction); + ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; } + WindowClass GetVehicleListWindowClass() { return WC_ROADVEH_LIST; } }; #endif /* ROADVEH_H */ |