main_gui.c
changeset 1914 5ede46fd496f
parent 1891 92a3b0aa0946
child 1932 275d72f700e2
--- a/main_gui.c	Mon Jun 06 13:11:35 2005 +0000
+++ b/main_gui.c	Mon Jun 06 13:47:06 2005 +0000
@@ -122,7 +122,7 @@
  * @return true if the button is clicked, false if it's unclicked
  */
 
-bool HandlePlacePushButton(Window *w, int widget, uint32 cursor, int mode, PlaceProc *placeproc)
+bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, int mode, PlaceProc *placeproc)
 {
 	uint32 mask = 1 << widget;
 
@@ -406,10 +406,10 @@
 
 static void SelectSignTool(void)
 {
-	if (_cursor.sprite == 0x2D2)
+	if (_cursor.sprite == SPR_CURSOR_SIGN)
 		ResetObjectToPlace();
 	else {
-		SetObjectToPlace(0x2D2, 1, 1, 0);
+		SetObjectToPlace(SPR_CURSOR_SIGN, 1, 1, 0);
 		_place_proc = PlaceProc_Sign;
 	}
 }
@@ -1713,7 +1713,7 @@
 		}
 
 		if ((button=e->click.widget) >= 4) {
-			if (HandlePlacePushButton(w, button, 0xFF1, 1, NULL))
+			if (HandlePlacePushButton(w, button, SPR_CURSOR_INDUSTRY, 1, NULL))
 				_industry_type_to_place = _industry_type_list[_opt.landscape][button - 4];
 		}
 		break;