Changeset - r15616:f386c05f9d59
[Not reviewed]
master
0 13 0
terkhen - 14 years ago 2010-08-01 20:52:11
terkhen@openttd.org
(svn r20289) -Codechange: Unify fall through coding style.
13 files changed with 25 insertions and 17 deletions:
0 comments (0 inline, 0 general)
src/fios_gui.cpp
Show inline comments
 
@@ -658,7 +658,7 @@ public:
 
				this->selected = NULL;
 
				_load_check_data.Clear();
 
				BuildFileList();
 
			/* FALL THROUGH */
 
				/* FALL THROUGH */
 
			case 1:
 
				/* Selection changes */
 
				if (_saveload_mode == SLD_LOAD_GAME || _saveload_mode == SLD_LOAD_SCENARIO) {
src/misc_gui.cpp
Show inline comments
 
@@ -1368,7 +1368,7 @@ struct QueryStringWindow : public QueryS
 
				break;
 
			}
 
			case HEBR_CONFIRM: this->OnOk();
 
			/* FALL THROUGH */
 
				/* FALL THROUGH */
 
			case HEBR_CANCEL: delete this; break; // close window, abandon changes
 
			case HEBR_NOT_FOCUSED: break;
 
		}
src/network/core/udp.cpp
Show inline comments
 
@@ -246,7 +246,8 @@ void NetworkUDPSocketHandler::Recv_Netwo
 
				*dst = c;
 
				dst = &c->next;
 
			}
 
		} // FALL THROUGH
 
			/* FALL THROUGH */
 
		}
 
		case 3:
 
			info->game_date      = Clamp(p->Recv_uint32(), 0, MAX_DATE);
 
			info->start_date     = Clamp(p->Recv_uint32(), 0, MAX_DATE);
src/network/network_gui.cpp
Show inline comments
 
@@ -2312,8 +2312,8 @@ struct NetworkCompanyPasswordWindow : pu
 
		switch (widget) {
 
			case NCPWW_OK:
 
				this->OnOk();
 
				/* FALL THROUGH */
 

	
 
			/* FALL THROUGH */
 
			case NCPWW_CANCEL:
 
				delete this;
 
				break;
src/newgrf_gui.cpp
Show inline comments
 
@@ -747,8 +747,9 @@ struct NewGRFWindow : public QueryString
 

	
 
				this->InvalidateData();
 
				if (click_count == 1) break;
 
				/* FALL THROUGH, with double click. */
 
			}
 
			/* FALL THROUGH, with double click. */
 

	
 
			case SNGRFS_REMOVE: { // Remove GRF
 
				if (this->active_sel == NULL || !this->editable) break;
 
				DeleteWindowByClass(WC_GRF_PARAMETERS);
 
@@ -787,8 +788,9 @@ struct NewGRFWindow : public QueryString
 
				}
 
				this->InvalidateData();
 
				if (click_count == 1) break;
 
				/* FALL THROUGH, with double click. */
 
			}
 
			/* FALL THROUGH, with double click. */
 

	
 
			case SNGRFS_ADD: {
 
				if (this->avail_sel == NULL || !this->editable) break;
 

	
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -357,8 +357,9 @@ void AfterLoadVehicles(bool part_of_load
 
				RoadVehicle *rv = RoadVehicle::From(v);
 
				rv->roadtype = HasBit(EngInfo(v->First()->engine_type)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD;
 
				rv->compatible_roadtypes = RoadTypeToRoadTypes(rv->roadtype);
 
				/* FALL THROUGH */
 
			}
 
				/* FALL THROUGH */
 

	
 
			case VEH_TRAIN:
 
			case VEH_SHIP:
 
				v->cur_image = v->GetImage(v->direction);
src/station_cmd.cpp
Show inline comments
 
@@ -2878,7 +2878,7 @@ static void TileLoop_Station(TileIndex t
 

	
 
		case STATION_DOCK:
 
			if (GetTileSlope(tile, NULL) != SLOPE_FLAT) break; // only handle water part
 
		/* FALL THROUGH */
 
			/* FALL THROUGH */
 
		case STATION_OILRIG: //(station part)
 
		case STATION_BUOY:
 
			TileLoop_Water(tile);
src/terraform_gui.cpp
Show inline comments
 
@@ -73,7 +73,7 @@ static void GenerateRockyArea(TileIndex 
 
		switch (GetTileType(tile)) {
 
			case MP_TREES:
 
				if (GetTreeGround(tile) == TREE_GROUND_SHORE) continue;
 
			/* FALL THROUGH */
 
				/* FALL THROUGH */
 
			case MP_CLEAR:
 
				MakeClear(tile, CLEAR_ROCKS, 3);
 
				break;
src/tree_cmd.cpp
Show inline comments
 
@@ -376,7 +376,7 @@ CommandCost CmdPlantTree(TileIndex tile,
 
					msg = STR_ERROR_CAN_T_BUILD_ON_WATER;
 
					continue;
 
				}
 
			/* FALL THROUGH */
 
				/* FALL THROUGH */
 
			case MP_CLEAR: {
 
				if (IsBridgeAbove(tile)) {
 
					msg = STR_ERROR_SITE_UNSUITABLE;
src/vehicle_gui.cpp
Show inline comments
 
@@ -516,8 +516,8 @@ struct RefitWindow : public Window {
 
				Vehicle *v = Vehicle::Get(this->window_number);
 
				BuildRefitList(v, &this->list);
 
				this->vscroll.SetCount(this->list.Length());
 
				/* FALL THROUGH */
 
			}
 
			/* FALL THROUGH */
 

	
 
			case 1: // A new cargo has been selected.
 
				this->cargo = (this->sel >= 0 && this->sel < (int)this->list.Length()) ? &this->list[this->sel] : NULL;
 
@@ -533,8 +533,9 @@ struct RefitWindow : public Window {
 
				this->InvalidateData(1);
 

	
 
				if (click_count == 1) break;
 
				/* FALL THROUGH */
 
			}
 
			/* FALL THROUGH */
 

	
 
			case VRW_REFITBUTTON: // refit button
 
				if (this->cargo != NULL) {
 
					const Vehicle *v = Vehicle::Get(this->window_number);
src/viewport.cpp
Show inline comments
 
@@ -2216,8 +2216,9 @@ static int CalcHeightdiff(HighLightStyle
 
			byte style_t = (byte)(TileX(end_tile) > TileX(start_tile));
 
			start_tile = TILE_ADD(start_tile, ToTileIndexDiff(heightdiff_area_by_dir[style_t]));
 
			end_tile   = TILE_ADD(end_tile, ToTileIndexDiff(heightdiff_area_by_dir[2 + style_t]));
 
			/* FALL THROUGH */
 
		}
 
		/* FALL THROUGH */
 

	
 
		case HT_POINT:
 
			h0 = TileHeight(start_tile);
 
			h1 = TileHeight(end_tile);
src/water_cmd.cpp
Show inline comments
 
@@ -349,7 +349,8 @@ CommandCost CmdBuildCanal(TileIndex tile
 
						MakeSea(tile);
 
						break;
 
					}
 
				/* FALL THROUGH */
 
					/* FALL THROUGH */
 

	
 
				default:
 
					MakeCanal(tile, _current_company, Random());
 
					break;
 
@@ -904,7 +905,8 @@ void DoFloodTile(TileIndex target)
 
					flooded = true;
 
					break;
 
				}
 
			/* FALL THROUGH */
 
				/* FALL THROUGH */
 

	
 
			case MP_CLEAR:
 
				if (DoCommand(target, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR).Succeeded()) {
 
					MakeShore(target);
src/window.cpp
Show inline comments
 
@@ -2247,8 +2247,8 @@ static void MouseLoop(MouseClick click, 
 
				if (!scrollwheel_scrolling || w == NULL || w->window_class != WC_SMALLMAP) break;
 
				/* We try to use the scrollwheel to scroll since we didn't touch any of the buttons.
 
				 * Simulate a right button click so we can get started. */
 

	
 
				/* fallthough */
 
				/* FALL THROUGH */
 

	
 
			case MC_RIGHT: DispatchRightClickEvent(w, x - w->left, y - w->top); break;
 

	
 
			case MC_HOVER: DispatchHoverEvent(w, x - w->left, y - w->top); break;
0 comments (0 inline, 0 general)