From 099ee88c301eec103a48279d0d14fb02e57559a8 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 3 Jan 2005 21:29:59 +0000 Subject: (svn r1354) Use WindowClass/WindowNumber to store/pass window class/number, not some arbitrary data types --- functions.h | 2 +- viewport.c | 2 +- viewport.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.h b/functions.h index 2feefc8e2..95ef0480d 100644 --- a/functions.h +++ b/functions.h @@ -203,7 +203,7 @@ void InvalidateWindowClasses(byte cls); void DeleteWindowById(WindowClass cls, WindowNumber number); void SetObjectToPlaceWnd(int icon, byte mode, Window *w); -void SetObjectToPlace(int icon, byte mode, byte window_class, uint16 window_num); +void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumber window_num); void ResetObjectToPlace(); diff --git a/viewport.c b/viewport.c index 05e461431..f28465230 100644 --- a/viewport.c +++ b/viewport.c @@ -2060,7 +2060,7 @@ void SetObjectToPlaceWnd(int icon, byte mode, Window *w) #include "table/animcursors.h" -void SetObjectToPlace(int icon, byte mode, byte window_class, uint16 window_num) +void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumber window_num) { TileHighlightData *thd = _thd_ptr; Window *w; diff --git a/viewport.h b/viewport.h index 068d34953..85652efa8 100644 --- a/viewport.h +++ b/viewport.h @@ -86,9 +86,9 @@ typedef struct TileHighlightData { byte next_drawstyle; byte place_mode; - byte window_class; bool make_square_red; - uint16 window_number; + WindowClass window_class; + WindowNumber window_number; int userdata; TileIndex redsq; -- cgit v1.2.3-70-g09d2