src/roadveh_cmd.cpp
changeset 11025 be3a48c6a25e
parent 10927 5e398769e415
child 11090 3ac220ac9a47
--- a/src/roadveh_cmd.cpp	Thu Jun 19 11:45:52 2008 +0000
+++ b/src/roadveh_cmd.cpp	Thu Jun 19 13:04:41 2008 +0000
@@ -1732,7 +1732,7 @@
 				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))) {