From b633ffaa1d58a8ad0f0e9aa34982877c8cf552a2 Mon Sep 17 00:00:00 2001 From: alberth Date: Tue, 21 Dec 2010 15:23:54 +0000 Subject: (svn r21571) -Codechange: Having a break after a return is no good. --- src/ai/api/ai_engine.cpp | 1 - src/ai/api/ai_event_types.cpp | 1 - src/ai/api/ai_order.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_engine.cpp b/src/ai/api/ai_engine.cpp index 7710360e8..f024c9331 100644 --- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -100,7 +100,6 @@ case VEH_SHIP: case VEH_AIRCRAFT: return e->GetDisplayDefaultCapacity(); - break; default: NOT_REACHED(); } diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp index b61e07605..ee7e9491e 100644 --- a/src/ai/api/ai_event_types.cpp +++ b/src/ai/api/ai_event_types.cpp @@ -61,7 +61,6 @@ int32 AIEventEnginePreview::GetCapacity() case VEH_SHIP: case VEH_AIRCRAFT: return e->GetDisplayDefaultCapacity(); - break; default: NOT_REACHED(); } diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp index 02d6a701b..0412334a6 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -33,7 +33,7 @@ static OrderType GetOrderTypeByTile(TileIndex t) if (IsBuoy(t) || IsRailWaypoint(t)) return OT_GOTO_WAYPOINT; if (IsHangar(t)) return OT_GOTO_DEPOT; return OT_GOTO_STATION; - break; + case MP_WATER: if (::IsShipDepot(t)) return OT_GOTO_DEPOT; break; case MP_ROAD: if (::GetRoadTileType(t) == ROAD_TILE_DEPOT) return OT_GOTO_DEPOT; break; case MP_RAILWAY: -- cgit v1.2.3-70-g09d2