From c6152e0cd48fb3f36fea6d95bf6296b284f63f57 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Aug 2007 20:05:58 +0000 Subject: (svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles. --- src/station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/station.cpp b/src/station.cpp index 6f0c12ce4..78bdf2121 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -515,7 +515,7 @@ RoadStop *RoadStop::GetNextRoadStop(const Vehicle *v) const { for (RoadStop *rs = this->next; rs != NULL; rs = rs->next) { /* The vehicle cannot go to this roadstop (different roadtype) */ - if ((GetRoadTypes(rs->xy) & v->u.road.compatible_roadtypes) != ROADTYPES_NONE) continue; + if ((GetRoadTypes(rs->xy) & v->u.road.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; -- cgit v1.2.3-54-g00ecf