diff options
author | tron <tron@openttd.org> | 2006-06-04 16:04:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-04 16:04:15 +0000 |
commit | 3cb526d0d980ff60b5d9158307258acf43c90c32 (patch) | |
tree | 7fafd1f3b5f9dd18acaf05ec2212fd5099f44243 /vehicle.c | |
parent | f1be69c47b33dc5811b3fe27b8635e475c506770 (diff) | |
download | openttd-3cb526d0d980ff60b5d9158307258acf43c90c32.tar.xz |
(svn r5101) Add a function to convert an axis and a flag for north/south into a DiagDirection. Use it for bridge ramps and ship depots
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1989,7 +1989,7 @@ Trackdir GetVehicleTrackdir(const Vehicle* v) 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 DiagdirToDiagTrackdir(GetShipDepotDirection(v->tile)); return TrackDirectionToTrackdir(FIND_FIRST_BIT(v->u.ship.state),v->direction); |