summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-20 20:09:46 +0000
committertron <tron@openttd.org>2005-06-20 20:09:46 +0000
commit255609f2d64ab84538af6dbf28b7a6fb91175ca2 (patch)
tree2def0b74e14319cc3e68e8c5b1ab619df60961ae /vehicle.c
parent7ea9ddacbb80dce6232809786f4dc2f1e195d253 (diff)
downloadopenttd-255609f2d64ab84538af6dbf28b7a6fb91175ca2.tar.xz
(svn r2465) Remove some unreachable code
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.c b/vehicle.c
index 7208e807b..1c10f12df 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1750,14 +1750,14 @@ Trackdir GetVehicleTrackdir(const Vehicle* v)
return DiagdirToDiagTrackdir((v->direction >> 1) & 3);
return TrackDirectionToTrackdir(FIND_FIRST_BIT(v->u.rail.track),v->direction);
- break;
+
case VEH_Ship:
if (v->u.ship.state == 0x80) /* Inside a depot? */
/* We'll assume the ship is facing outwards */
return DiagdirToDiagTrackdir(GetDepotDirection(v->tile, TRANSPORT_WATER)); /* Ship in depot */
return TrackDirectionToTrackdir(FIND_FIRST_BIT(v->u.ship.state),v->direction);
- break;
+
case VEH_Road:
if (v->u.road.state == 254) /* We'll assume the road vehicle is facing outwards */
return DiagdirToDiagTrackdir(GetDepotDirection(v->tile, TRANSPORT_ROAD)); /* Road vehicle in depot */
@@ -1766,7 +1766,7 @@ Trackdir GetVehicleTrackdir(const Vehicle* v)
return DiagdirToDiagTrackdir(GetRoadStationDir(v->tile)); /* Road vehicle in a station */
return DiagdirToDiagTrackdir((v->direction >> 1) & 3);
- break;
+
/* case VEH_Aircraft: case VEH_Special: case VEH_Disaster: */
default: return 0xFF;
}