diff options
author | rubidium <rubidium@openttd.org> | 2009-07-02 08:59:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-02 08:59:27 +0000 |
commit | 61e735ba4c62e578ca16f708ac1fdc872ff6416d (patch) | |
tree | 5deab079f0b88a32b90e1d0ed7f44a140ace2560 /src/articulated_vehicles.cpp | |
parent | 77eaefb61c9d1cbd4e6347e3fc042565a5b7572e (diff) | |
download | openttd-61e735ba4c62e578ca16f708ac1fdc872ff6416d.tar.xz |
(svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r-- | src/articulated_vehicles.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index 51ae3d4f1..8dcb5182f 100644 --- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -211,7 +211,7 @@ bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *carg break; case VEH_ROAD: - v = (RoadVehHasArticPart(v) ? v->Next() : NULL); + v = RoadVehicle::From(v)->RoadVehHasArticPart() ? v->Next() : NULL; break; default: @@ -258,7 +258,7 @@ void CheckConsistencyOfArticulatedVehicle(const Vehicle *v) break; case VEH_ROAD: - v = (RoadVehHasArticPart(v) ? v->Next() : NULL); + v = RoadVehicle::From(v)->RoadVehHasArticPart() ? v->Next() : NULL; break; default: @@ -348,7 +348,7 @@ void AddArticulatedParts(Vehicle *first, VehicleType type) rv->cargo_cap = 0; } - SetRoadVehArticPart(rv); + rv->SetArticulatedPart(); } break; } |