(svn r1354) Use WindowClass/WindowNumber to store/pass window class/number, not some arbitrary data types
--- a/functions.h Mon Jan 03 21:26:09 2005 +0000
+++ b/functions.h Mon Jan 03 21:29:59 2005 +0000
@@ -203,7 +203,7 @@
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();
--- a/viewport.c Mon Jan 03 21:26:09 2005 +0000
+++ b/viewport.c Mon Jan 03 21:29:59 2005 +0000
@@ -2060,7 +2060,7 @@
#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;
--- a/viewport.h Mon Jan 03 21:26:09 2005 +0000
+++ b/viewport.h Mon Jan 03 21:29:59 2005 +0000
@@ -86,9 +86,9 @@
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;