File diff r1018:9c1834908677 → r1019:90da3857ff29
main_gui.c
Show inline comments
 
@@ -1095,13 +1095,13 @@ static void AskResetLandscapeWndProc(Win
 
			DeleteWindow(w);
 
			break;
 
		case 4:
 
			DeleteWindow(w);
 
			DeleteWindowByClass(WC_INDUSTRY_VIEW);
 
			DeleteWindowByClass(WC_TOWN_VIEW);
 
			DeleteWindowByClass(WC_LAND_INFO);			
 
			DeleteWindowByClass(WC_LAND_INFO);
 

	
 
			if (mode) { // reset landscape
 
				ResetLandscape();
 
			} else { // make random landscape
 
				SndPlayFx(SND_15_BEEP);
 
				_switch_mode = SM_GENRANDLAND;
 
@@ -1261,13 +1261,13 @@ static const int8 _multi_terraform_coord
 

	
 
static void ScenEditLandGenWndProc(Window *w, WindowEvent *e)
 
{
 
	switch(e->event) {
 
	case WE_PAINT:
 
		// XXX - lighthouse button is widget 11!! Don't forget when changing
 
		w->widget[11].tooltips = (_opt.landscape == LT_DESERT) ? STR_028F_DEFINE_DESERT_AREA : STR_028D_PLACE_LIGHTHOUSE; 
 
		w->widget[11].tooltips = (_opt.landscape == LT_DESERT) ? STR_028F_DEFINE_DESERT_AREA : STR_028D_PLACE_LIGHTHOUSE;
 
		DrawWindowWidgets(w);
 

	
 
		{
 
			int n = _terraform_size * _terraform_size;
 
			const int8 *coords = &_multi_terraform_coords[0][0];
 

	
 
@@ -2424,13 +2424,13 @@ void ShowVitalWindows(void)
 

	
 
	if (_networking) { // if networking, disable fast-forward button
 
		SETBIT(w->disabled_state, 1);
 
		if (!_network_server) // if not server, disable pause button
 
			SETBIT(w->disabled_state, 0);
 
	}
 
	
 

	
 
	PositionMainToolbar(w); // already WC_MAIN_TOOLBAR passed (&_toolb_normal_desc)
 

	
 
	_main_status_desc.top = _screen.height - 12;
 
	w = AllocateWindowDesc(&_main_status_desc);
 
	CLRBITS(w->flags4, WF_WHITE_BORDER_MASK);