main_gui.c
changeset 988 2482369a61ff
parent 983 1be852dcdd4c
child 989 36d9d925825b
--- a/main_gui.c	Wed Jan 12 00:50:08 2005 +0000
+++ b/main_gui.c	Wed Jan 12 11:21:28 2005 +0000
@@ -14,6 +14,7 @@
 #include "console.h"
 #include "sound.h"
 #include "network.h"
+#include "signs.h"
 
 #ifdef ENABLE_NETWORK
 #include "network_data.h"
@@ -370,7 +371,7 @@
 
 void ShowRenameSignWindow(SignStruct *ss)
 {
-	_rename_id = ss - _sign_list;
+	_rename_id = ss->index;
 	_rename_what = 0;
 	ShowQueryString(ss->str, STR_280B_EDIT_SIGN_TEXT, 30, 180, 1, 0);
 }
@@ -392,19 +393,6 @@
 	ShowQueryString(STR_WAYPOINT_RAW, STR_EDIT_WAYPOINT_NAME, 30, 180, 1, 0);
 }
 
-void CcPlaceSign(bool success, uint tile, uint32 p1, uint32 p2)
-{
-	if (success) {
-		ShowRenameSignWindow(_new_sign_struct);
-		ResetObjectToPlace();
-	}
-}
-
-void PlaceProc_Sign(uint tile)
-{
-	DoCommandP(tile, 0, 0, CcPlaceSign, CMD_PLACE_SIGN | CMD_MSG(STR_2809_CAN_T_PLACE_SIGN_HERE));
-}
-
 static void SelectSignTool()
 {
 	if (_cursor.sprite == 0x2D2)