diff options
author | rubidium <rubidium@openttd.org> | 2007-08-25 20:05:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-25 20:05:58 +0000 |
commit | f3de8788d896d416330e6b1850aa069b3802d235 (patch) | |
tree | 643d80a30653b6f019e94cce7d9cb1574190e253 /src | |
parent | 5a496ffeb58f5d0784758d9fc48434994cb866c7 (diff) | |
download | openttd-f3de8788d896d416330e6b1850aa069b3802d235.tar.xz |
(svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles.
Diffstat (limited to 'src')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |