diff options
author | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
commit | 12d252d9bd7ffee83c4be5162cd506bda1070020 (patch) | |
tree | 3d2526e7f2638131186fe93a08829d1bf29f22b5 /vehicle.c | |
parent | 78083f0da7b7c94eccea15eec397e2afe96da1d5 (diff) | |
download | openttd-12d252d9bd7ffee83c4be5162cd506bda1070020.tar.xz |
(svn r3831) Add and use GetRailDepotDirection()
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1960,7 +1960,7 @@ Trackdir GetVehicleTrackdir(const Vehicle* v) switch (v->type) { case VEH_Train: if (v->u.rail.track == 0x80) /* We'll assume the train is facing outwards */ - return DiagdirToDiagTrackdir(GetDepotDirection(v->tile, TRANSPORT_RAIL)); /* Train in depot */ + return DiagdirToDiagTrackdir(GetRailDepotDirection(v->tile)); /* Train in depot */ if (v->u.rail.track == 0x40) /* train in tunnel, so just use his direction and assume a diagonal track */ return DiagdirToDiagTrackdir(DirToDiagDir(v->direction)); |