Changeset - r2755:f79097dcbd4a
[Not reviewed]
master
0 5 0
tron - 18 years ago 2005-12-14 06:49:54
tron@openttd.org
(svn r3300) Remove unreachable code - in this case some duplicate breaks
5 files changed with 8 insertions and 13 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -833,7 +833,7 @@ static void AircraftDepotWndProc(Window 
 
		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 
 
			SetWindowDirty(w);
 
		}
 
		break;
 
	}
 
	break;
 

	
 
	case WE_RESIZE:
 
		w->vscroll.cap += e->sizing.diff.y / 24;
main_gui.c
Show inline comments
 
@@ -2090,7 +2090,7 @@ static void ScenEditToolbarWndProc(Windo
 
		_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(Windo
 
		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);
players.c
Show inline comments
 
@@ -733,7 +733,8 @@ int32 CmdReplaceVehicle(int x, int y, ui
 
			} else {
 
				return RemoveEngineReplacement(p, old_engine_type, flags);
 
			}
 
		} break;
 
		}
 

	
 
		case 4:
 
			if (flags & DC_EXEC) {
 
				p->engine_renew = (bool)GB(p1, 15, 1);
roadveh_gui.c
Show inline comments
 
@@ -738,7 +738,7 @@ static void RoadDepotWndProc(Window *w, 
 
		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, 
 
			SetWindowDirty(w);
 
		}
 
		break;
 
	}
 
	break;
 

	
 
	case WE_RESIZE: {
 
		/* Update the scroll + matrix */
ship_gui.c
Show inline comments
 
@@ -816,7 +816,7 @@ static void ShipDepotWndProc(Window* w, 
 
		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, 
 
			SetWindowDirty(w);
 
		}
 
		break;
 
	}
 
	break;
 

	
 
	case WE_RESIZE:
 
		w->vscroll.cap += e->sizing.diff.y / 24;
0 comments (0 inline, 0 general)