Mercurial > hg > openttd
diff src/vehicle.cpp @ 6012:542153c1c803 draft
(svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 14 Feb 2007 16:37:16 +0000 (2007-02-14) |
parents | 8a03a7d8bfd1 |
children | 3cfdf096e874 |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2756,9 +2756,11 @@ if (IsRoadVehInDepot(v)) /* We'll assume the road vehicle is facing outwards */ return DiagdirToDiagTrackdir(GetRoadDepotDirection(v->tile)); - if (IsRoadStopTile(v->tile)) /* We'll assume the road vehicle is facing outwards */ + if (IsStandardRoadStopTile(v->tile)) /* We'll assume the road vehicle is facing outwards */ return DiagdirToDiagTrackdir(GetRoadStopDir(v->tile)); /* Road vehicle in a station */ + if (IsDriveThroughStopTile(v->tile)) return DiagdirToDiagTrackdir(DirToDiagDir(v->direction)); + /* If vehicle's state is a valid track direction (vehicle is not turning around) return it */ if (!IsReversingRoadTrackdir((Trackdir)v->u.road.state)) return (Trackdir)v->u.road.state;