From c8882bd3d2dbbc7fab90e74ce71a0699cb1438f3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 1 Feb 2007 15:49:12 +0000 Subject: (svn r8511) -Codechange: make WindowClass an enumerated value. --- src/openttd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/openttd.h') 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, -- cgit v1.2.3-54-g00ecf