diff options
author | rubidium <rubidium@openttd.org> | 2008-06-19 13:04:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-19 13:04:41 +0000 |
commit | 5b615eae3a8922b373789258abd49a74e708b1a9 (patch) | |
tree | 9bcb942840459cecfac25119f21911885892c2fd | |
parent | aef8a214c386ab2af0faebbf77e1d965aa18ea54 (diff) | |
download | openttd-5b615eae3a8922b373789258abd49a74e708b1a9.tar.xz |
(svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them.
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index e7e17b2e7..8280b2570 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1732,7 +1732,7 @@ again: RoadStopType type = IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? ROADSTOP_BUS : ROADSTOP_TRUCK; /* Check if next inline bay is free */ - if (IsDriveThroughStopTile(next_tile) && (GetRoadStopType(next_tile) == type)) { + if (IsDriveThroughStopTile(next_tile) && (GetRoadStopType(next_tile) == type) && GetStationIndex(v->tile) == GetStationIndex(next_tile)) { RoadStop *rs_n = GetRoadStopByTile(next_tile, type); if (rs_n->IsFreeBay(HasBit(v->u.road.state, RVS_USING_SECOND_BAY))) { |