diff options
author | rubidium <rubidium@openttd.org> | 2009-01-11 14:09:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-11 14:09:09 +0000 |
commit | 6c880d1c209e2b0ef076f41998925da0b6ee33d0 (patch) | |
tree | eb21890ec34da251308469d7b28f2dd7ea0551c0 /src/vehicle.cpp | |
parent | 1ef953e4a557e14cae3ee53c002c0a10c13e73d0 (diff) | |
download | openttd-6c880d1c209e2b0ef076f41998925da0b6ee33d0.tar.xz |
(svn r14990) -Codechange: handle articulated RVs and trams more strictly in GetStationTileForVehicle and CanVehicleUseStation (based on idea by Swallow)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 37fd1dd2a..86b07c7ff 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2278,9 +2278,7 @@ bool CanVehicleUseStation(EngineID engine_type, const Station *st) */ bool CanVehicleUseStation(const Vehicle *v, const Station *st) { - if (v->type == VEH_ROAD) { - return (st->facilities & (IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? FACIL_BUS_STOP : FACIL_TRUCK_STOP)) != 0; - } + if (v->type == VEH_ROAD) return st->GetPrimaryRoadStop(v) != NULL; return CanVehicleUseStation(v->engine_type, st); } |