summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-11 19:57:45 +0000
committerrubidium <rubidium@openttd.org>2008-06-11 19:57:45 +0000
commitda524e71ae0df370723cf629044ddfa1569db727 (patch)
treeff19c947fb714c6518fe4c1a0cbac353babb7f4e
parent5d5d9f682e198707ab94a59fb8864396b30600b5 (diff)
downloadopenttd-da524e71ae0df370723cf629044ddfa1569db727.tar.xz
(svn r13480) -Fix [FS#2050]: RVs stoppping at drive through stations of other companies.
-rw-r--r--src/roadveh_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 7ecd0779b..e7e17b2e7 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1714,6 +1714,7 @@ again:
_road_veh_data_1[v->u.road.state - RVSB_IN_ROAD_STOP + (_settings_game.vehicle.road_side << RVS_DRIVE_SIDE)] == v->u.road.frame) ||
(IsInsideMM(v->u.road.state, RVSB_IN_DT_ROAD_STOP, RVSB_IN_DT_ROAD_STOP_END) &&
v->current_order.ShouldStopAtStation(v, GetStationIndex(v->tile)) &&
+ v->owner == GetRoadOwner(v->tile, v->u.road.roadtype) &&
GetRoadStopType(v->tile) == (IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? ROADSTOP_BUS : ROADSTOP_TRUCK) &&
v->u.road.frame == RVC_DRIVE_THROUGH_STOP_FRAME))) {