main_gui.c
changeset 1542 62a03537ad0b
parent 1500 a66721629bc0
child 1571 9afc220894dd
equal deleted inserted replaced
1541:88d76661a786 1542:62a03537ad0b
    17 #include "vehicle.h"
    17 #include "vehicle.h"
    18 #include "console.h"
    18 #include "console.h"
    19 #include "sound.h"
    19 #include "sound.h"
    20 #include "network.h"
    20 #include "network.h"
    21 #include "signs.h"
    21 #include "signs.h"
       
    22 #include "waypoint.h"
    22 
    23 
    23 #ifdef ENABLE_NETWORK
    24 #ifdef ENABLE_NETWORK
    24 #include "network_data.h"
    25 #include "network_data.h"
    25 #include "network_client.h"
    26 #include "network_client.h"
    26 #include "network_server.h"
    27 #include "network_server.h"
   388 	_rename_id = ss->index;
   389 	_rename_id = ss->index;
   389 	_rename_what = 0;
   390 	_rename_what = 0;
   390 	ShowQueryString(ss->str, STR_280B_EDIT_SIGN_TEXT, 30, 180, 1, 0);
   391 	ShowQueryString(ss->str, STR_280B_EDIT_SIGN_TEXT, 30, 180, 1, 0);
   391 }
   392 }
   392 
   393 
   393 void ShowRenameWaypointWindow(Waypoint *cp)
   394 void ShowRenameWaypointWindow(Waypoint *wp)
   394 {
   395 {
   395 	int id = cp - _waypoints;
   396 	int id = wp->index;
   396 
   397 
   397 	/* Are we allowed to change the name of the waypoint? */
   398 	/* Are we allowed to change the name of the waypoint? */
   398 	if (!CheckTileOwnership(cp->xy)) {
   399 	if (!CheckTileOwnership(wp->xy)) {
   399 		ShowErrorMessage(_error_message, STR_CANT_CHANGE_WAYPOINT_NAME,
   400 		ShowErrorMessage(_error_message, STR_CANT_CHANGE_WAYPOINT_NAME,
   400 			TileX(cp->xy) * 16, TileY(cp->xy) * 16);
   401 			TileX(wp->xy) * 16, TileY(wp->xy) * 16);
   401 		return;
   402 		return;
   402 	}
   403 	}
   403 
   404 
   404 	_rename_id = id;
   405 	_rename_id = id;
   405 	_rename_what = 1;
   406 	_rename_what = 1;