From 12d252d9bd7ffee83c4be5162cd506bda1070020 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 12 Mar 2006 16:13:16 +0000 Subject: (svn r3831) Add and use GetRailDepotDirection() --- vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vehicle.c') diff --git a/vehicle.c b/vehicle.c index 1e34c78d1..d737350f2 100644 --- a/vehicle.c +++ b/vehicle.c @@ -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)); -- cgit v1.2.3-54-g00ecf