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/vehicle_gui.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/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 4bfb86e47..a407b3993 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1355,7 +1355,7 @@ struct VehicleDetailsWindow : Window { case VEH_ROAD: { this->widget[VLD_WIDGET_RENAME_VEHICLE].tooltips = STR_QUERY_RENAME_ROAD_CAPTION; - if (!RoadVehHasArticPart(v)) break; + if (!RoadVehicle::From(v)->RoadVehHasArticPart()) break; /* Draw the text under the vehicle instead of next to it, minus the * height already allocated for the cargo of the first vehicle. */ |