File diff r1322:ac830d6af496 → r1323:29249e0649f7
town_gui.c
Show inline comments
 
@@ -264,25 +264,25 @@ static void TownViewWndProc(Window *w, W
 
			ShowQueryString(t->townnametype, STR_2007_RENAME_TOWN, 31, 130, w->window_class, w->window_number);
 
			break;
 
		case 9: /* expand town */
 
			ExpandTown(t);
 
			break;
 
		case 10: /* delete town */
 
			DeleteTown(t);
 
			break;
 
		}
 
		break;
 

	
 
	case WE_ON_EDIT_TEXT: {
 
		byte *b = e->edittext.str;
 
		const char *b = e->edittext.str;
 
		if (*b == 0)
 
			return;
 
		memcpy(_decode_parameters, b, 32);
 
		DoCommandP(0, w->window_number, 0, NULL, CMD_RENAME_TOWN | CMD_MSG(STR_2008_CAN_T_RENAME_TOWN));
 
	} break;
 
	}
 
}
 

	
 

	
 
static const Widget _town_view_widgets[] = {
 
{    WWT_TEXTBTN,   RESIZE_NONE,    13,     0,    10,     0,    13, STR_00C5, STR_018B_CLOSE_WINDOW},
 
{    WWT_CAPTION,   RESIZE_NONE,    13,    11,   247,     0,    13, STR_2005, STR_018C_WINDOW_TITLE_DRAG_THIS},