main_gui.c
changeset 2548 49c8a096033f
parent 2520 8a52362c4ada
child 2549 5587f9a38563
equal deleted inserted replaced
2547:62727a362bec 2548:49c8a096033f
    69 	switch (_rename_what) {
    69 	switch (_rename_what) {
    70 	case 0: /* Rename a s sign, if string is empty, delete sign */
    70 	case 0: /* Rename a s sign, if string is empty, delete sign */
    71 		DoCommandP(0, id, 0, NULL, CMD_RENAME_SIGN | CMD_MSG(STR_280C_CAN_T_CHANGE_SIGN_NAME));
    71 		DoCommandP(0, id, 0, NULL, CMD_RENAME_SIGN | CMD_MSG(STR_280C_CAN_T_CHANGE_SIGN_NAME));
    72 		break;
    72 		break;
    73 	case 1: /* Rename a waypoint */
    73 	case 1: /* Rename a waypoint */
    74 		if (*b == 0) return;
    74 		if (*b == '\0') return;
    75 		DoCommandP(0, id, 0, NULL, CMD_RENAME_WAYPOINT | CMD_MSG(STR_CANT_CHANGE_WAYPOINT_NAME));
    75 		DoCommandP(0, id, 0, NULL, CMD_RENAME_WAYPOINT | CMD_MSG(STR_CANT_CHANGE_WAYPOINT_NAME));
    76 		break;
    76 		break;
    77 #ifdef ENABLE_NETWORK
    77 #ifdef ENABLE_NETWORK
    78 	case 2: /* Speak to.. */
    78 	case 2: /* Speak to.. */
    79 		if (!_network_server)
    79 		if (!_network_server)
   942 	}
   942 	}
   943 }
   943 }
   944 
   944 
   945 static void ToolbarBuildRailClick(Window *w)
   945 static void ToolbarBuildRailClick(Window *w)
   946 {
   946 {
   947 	Player *p = GetPlayer(_local_player);
   947 	const Player* p = GetPlayer(_local_player);
   948 	Window *w2;
   948 	Window *w2;
   949 	w2 = PopupMainToolbMenu(w, 457, 19, STR_1015_RAILROAD_CONSTRUCTION, RAILTYPE_END, ~p->avail_railtypes);
   949 	w2 = PopupMainToolbMenu(w, 457, 19, STR_1015_RAILROAD_CONSTRUCTION, RAILTYPE_END, ~p->avail_railtypes);
   950 	WP(w2,menu_d).sel_index = _last_built_railtype;
   950 	WP(w2,menu_d).sel_index = _last_built_railtype;
   951 }
   951 }
   952 
   952