diff options
author | rubidium <rubidium@openttd.org> | 2009-03-01 21:48:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-01 21:48:03 +0000 |
commit | 52f5717a669ce85d528f42c626fb7f14aa9cdd9b (patch) | |
tree | 6dffb595e9c4c05947d16e658773d0c9b5999f9a /src | |
parent | 6082ba65d7f688d19940943c4179ac102ee6d9d2 (diff) | |
download | openttd-52f5717a669ce85d528f42c626fb7f14aa9cdd9b.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')
-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 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))) { |