summaryrefslogtreecommitdiff
path: root/src/roadstop.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-02 08:59:27 +0000
committerrubidium <rubidium@openttd.org>2009-07-02 08:59:27 +0000
commit61e735ba4c62e578ca16f708ac1fdc872ff6416d (patch)
tree5deab079f0b88a32b90e1d0ed7f44a140ace2560 /src/roadstop.cpp
parent77eaefb61c9d1cbd4e6347e3fc042565a5b7572e (diff)
downloadopenttd-61e735ba4c62e578ca16f708ac1fdc872ff6416d.tar.xz
(svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle.
Diffstat (limited to 'src/roadstop.cpp')
-rw-r--r--src/roadstop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadstop.cpp b/src/roadstop.cpp
index 5082ee429..2baba198b 100644
--- a/src/roadstop.cpp
+++ b/src/roadstop.cpp
@@ -40,7 +40,7 @@ RoadStop *RoadStop::GetNextRoadStop(const RoadVehicle *v) const
/* The vehicle cannot go to this roadstop (different roadtype) */
if ((GetRoadTypes(rs->xy) & v->compatible_roadtypes) == ROADTYPES_NONE) continue;
/* The vehicle is articulated and can therefor not go the a standard road stop */
- if (IsStandardRoadStopTile(rs->xy) && RoadVehHasArticPart(v)) continue;
+ if (IsStandardRoadStopTile(rs->xy) && v->RoadVehHasArticPart()) continue;
/* The vehicle can actually go to this road stop. So, return it! */
return rs;