diff options
author | tron <tron@openttd.org> | 2006-03-11 09:10:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-11 09:10:46 +0000 |
commit | 929fae7b685a21e2337736084e42731f84cf8cba (patch) | |
tree | 5a49ef225f58c5e3ddaaa72935a0c65e716fe884 /vehicle.c | |
parent | 6892e04d14a78818c6cdbf71b0d1f92996a10bc6 (diff) | |
download | openttd-929fae7b685a21e2337736084e42731f84cf8cba.tar.xz |
(svn r3816) Use existing accessors
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1976,7 +1976,7 @@ Trackdir GetVehicleTrackdir(const Vehicle* v) 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 */ + return DiagdirToDiagTrackdir(GetRoadDepotDirection(v->tile)); if (IsRoadStationTile(v->tile)) /* We'll assume the road vehicle is facing outwards */ return DiagdirToDiagTrackdir(GetRoadStationDir(v->tile)); /* Road vehicle in a station */ |