mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-25 14:40:10 +01:00
(svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles.
This commit is contained in:
parent
5d245dc861
commit
c6152e0cd4
@ -515,7 +515,7 @@ RoadStop *RoadStop::GetNextRoadStop(const Vehicle *v) const
|
|||||||
{
|
{
|
||||||
for (RoadStop *rs = this->next; rs != NULL; rs = rs->next) {
|
for (RoadStop *rs = this->next; rs != NULL; rs = rs->next) {
|
||||||
/* The vehicle cannot go to this roadstop (different roadtype) */
|
/* 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 */
|
/* 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) && RoadVehHasArticPart(v)) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user