(svn r3300) Remove unreachable code - in this case some duplicate breaks
This commit is contained in:
		@@ -833,7 +833,7 @@ static void AircraftDepotWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
		DeleteWindowById(WC_BUILD_VEHICLE, w->window_number);
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
	case WE_DRAGDROP: {
 | 
			
		||||
	case WE_DRAGDROP:
 | 
			
		||||
		switch(e->click.widget) {
 | 
			
		||||
		case 5: {
 | 
			
		||||
			Vehicle *v;
 | 
			
		||||
@@ -871,8 +871,6 @@ static void AircraftDepotWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
			SetWindowDirty(w);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
 | 
			
		||||
	case WE_RESIZE:
 | 
			
		||||
		w->vscroll.cap += e->sizing.diff.y / 24;
 | 
			
		||||
 
 | 
			
		||||
@@ -2090,7 +2090,7 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
		_scen_toolbar_button_procs[e->click.widget](w);
 | 
			
		||||
	} break;
 | 
			
		||||
 | 
			
		||||
	case WE_KEYPRESS: {
 | 
			
		||||
	case WE_KEYPRESS:
 | 
			
		||||
		switch (e->keypress.keycode) {
 | 
			
		||||
		case WKC_F1: ToolbarPauseClick(w); break;
 | 
			
		||||
		case WKC_F2: ShowGameOptions(); break;
 | 
			
		||||
@@ -2106,8 +2106,8 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
		case WKC_CTRL | 'S': _make_screenshot = 1; break;
 | 
			
		||||
		case WKC_CTRL | 'G': _make_screenshot = 2; break;
 | 
			
		||||
		case 'L': ShowEditorTerraformToolBar(); break;
 | 
			
		||||
		} break;
 | 
			
		||||
	}	break;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
	case WE_PLACE_OBJ: {
 | 
			
		||||
		_place_proc(e->place.tile);
 | 
			
		||||
 
 | 
			
		||||
@@ -733,7 +733,8 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
 | 
			
		||||
			} else {
 | 
			
		||||
				return RemoveEngineReplacement(p, old_engine_type, flags);
 | 
			
		||||
			}
 | 
			
		||||
		} break;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		case 4:
 | 
			
		||||
			if (flags & DC_EXEC) {
 | 
			
		||||
				p->engine_renew = (bool)GB(p1, 15, 1);
 | 
			
		||||
 
 | 
			
		||||
@@ -738,7 +738,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
		DeleteWindowById(WC_BUILD_VEHICLE, w->window_number);
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
	case WE_DRAGDROP: {
 | 
			
		||||
	case WE_DRAGDROP:
 | 
			
		||||
		switch(e->click.widget) {
 | 
			
		||||
		case 5: {
 | 
			
		||||
			Vehicle *v;
 | 
			
		||||
@@ -776,8 +776,6 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
 | 
			
		||||
			SetWindowDirty(w);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
 | 
			
		||||
	case WE_RESIZE: {
 | 
			
		||||
		/* Update the scroll + matrix */
 | 
			
		||||
 
 | 
			
		||||
@@ -816,7 +816,7 @@ static void ShipDepotWndProc(Window* w, WindowEvent* e)
 | 
			
		||||
		DeleteWindowById(WC_BUILD_VEHICLE, w->window_number);
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
	case WE_DRAGDROP: {
 | 
			
		||||
	case WE_DRAGDROP:
 | 
			
		||||
		switch(e->click.widget) {
 | 
			
		||||
		case 5: {
 | 
			
		||||
			Vehicle *v;
 | 
			
		||||
@@ -854,8 +854,6 @@ static void ShipDepotWndProc(Window* w, WindowEvent* e)
 | 
			
		||||
			SetWindowDirty(w);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
 | 
			
		||||
	case WE_RESIZE:
 | 
			
		||||
		w->vscroll.cap += e->sizing.diff.y / 24;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user