# HG changeset patch # User rubidium # Date 1213880681 0 # Node ID e4bfca78db29f13ae39076cdfcb8dc891af5432a # Parent cb49ef39913f3ed1c52f4e70ad84ae69d31afef4 (svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them. diff -r cb49ef39913f -r e4bfca78db29 src/roadveh_cmd.cpp --- 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))) {