(svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles.
authorrubidium
Sat, 25 Aug 2007 20:05:58 +0000
changeset 7967 7a931c848b69
parent 7966 24f03a15d679
child 7968 a28a39028d4f
(svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles.
src/station.cpp
--- a/src/station.cpp	Fri Aug 24 19:49:40 2007 +0000
+++ b/src/station.cpp	Sat Aug 25 20:05:58 2007 +0000
@@ -515,7 +515,7 @@
 {
 	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;