window.c
changeset 2517 b90693227193
parent 2436 177cb6a8339f
child 2549 f1d3b383d557
--- a/window.c	Sat Oct 15 07:40:22 2005 +0000
+++ b/window.c	Sat Oct 15 11:06:54 2005 +0000
@@ -11,6 +11,7 @@
 #include "viewport.h"
 #include "console.h"
 #include "variables.h"
+#include "table/sprites.h"
 
 // delta between mouse cursor and upper left corner of dragged window
 static Point _drag_delta;
@@ -1430,7 +1431,8 @@
 			DEBUG(misc, 2) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
 			if (_thd.place_mode != 0 &&
 					// query button and place sign button work in pause mode
-					!(_cursor.sprite == 0x2CF || _cursor.sprite == 0x2D2) &&
+					_cursor.sprite != SPR_CURSOR_QUERY &&
+					_cursor.sprite != SPR_CURSOR_SIGN &&
 					_pause != 0 &&
 					!_cheats.build_in_pause.value)
 						return;