summaryrefslogtreecommitdiff
path: root/src/openttd.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-01 15:49:12 +0000
committerrubidium <rubidium@openttd.org>2007-02-01 15:49:12 +0000
commitc8882bd3d2dbbc7fab90e74ce71a0699cb1438f3 (patch)
treef20591430627ec5e32fc838089b470939051cee5 /src/openttd.h
parent01a9abc7e5d27d154a8b746c2ada76609961a925 (diff)
downloadopenttd-c8882bd3d2dbbc7fab90e74ce71a0699cb1438f3.tar.xz
(svn r8511) -Codechange: make WindowClass an enumerated value.
Diffstat (limited to 'src/openttd.h')
-rw-r--r--src/openttd.h6
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,