summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-01 21:48:03 +0000
committerrubidium <rubidium@openttd.org>2009-03-01 21:48:03 +0000
commit251f6f676fd15a612885e304e0535f76a9c2d53e (patch)
tree6dffb595e9c4c05947d16e658773d0c9b5999f9a /src/roadveh_cmd.cpp
parenta715775bcf735404bd9cbcb565d06d55103c907a (diff)
downloadopenttd-251f6f676fd15a612885e304e0535f76a9c2d53e.tar.xz
(svn r15596) -Change: road vehicles can stop at stops when they own the stop, not when they own the road/tram track.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 7878a9d05..f025e46ba 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1670,7 +1670,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) &&
+ v->owner == GetTileOwner(v->tile) &&
GetRoadStopType(v->tile) == (IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? ROADSTOP_BUS : ROADSTOP_TRUCK) &&
v->u.road.frame == RVC_DRIVE_THROUGH_STOP_FRAME))) {