diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/station_gui.cpp | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 8e2deb0e3..38e99f718 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -153,21 +153,21 @@ static int CDECL StationRatingMaxSorter(const void *a, const void *b) return (_internal_sort_order & 1) ? maxr2 - maxr1 : maxr1 - maxr2; } -typedef enum StationListFlags { +enum StationListFlags { SL_ORDER = 0x01, SL_RESORT = 0x02, SL_REBUILD = 0x04, -} StationListFlags; +}; DECLARE_ENUM_AS_BIT_SET(StationListFlags); -typedef struct plstations_d { +struct plstations_d { const Station** sort_list; uint16 list_length; byte sort_type; StationListFlags flags; uint16 resort_timer; //was byte refresh_counter; -} plstations_d; +}; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(plstations_d)); void RebuildStationLists() |