diff options
author | rubidium <rubidium@openttd.org> | 2007-02-01 15:49:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-01 15:49:12 +0000 |
commit | c8882bd3d2dbbc7fab90e74ce71a0699cb1438f3 (patch) | |
tree | f20591430627ec5e32fc838089b470939051cee5 /src/openttd.h | |
parent | 01a9abc7e5d27d154a8b746c2ada76609961a925 (diff) | |
download | openttd-c8882bd3d2dbbc7fab90e74ce71a0699cb1438f3.tar.xz |
(svn r8511) -Codechange: make WindowClass an enumerated value.
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openttd.h b/src/openttd.h index cfb4040bd..0126d72c8 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -74,7 +74,6 @@ assert_compile(sizeof(DestinationID) == sizeof(WaypointID)); assert_compile(sizeof(DestinationID) == sizeof(StationID)); typedef int32 WindowNumber; -typedef byte WindowClass; enum { INVALID_YEAR = -1, @@ -386,8 +385,9 @@ typedef struct { } TileTypeProcs; -enum { - WC_MAIN_WINDOW, +enum WindowClass { + WC_NONE, + WC_MAIN_WINDOW = WC_NONE, WC_MAIN_TOOLBAR, WC_STATUS_BAR, WC_BUILD_TOOLBAR, |