diff options
author | smatz <smatz@openttd.org> | 2009-07-01 23:57:20 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-01 23:57:20 +0000 |
commit | d86e17d65adebad6f0213451b99645be3494ea45 (patch) | |
tree | 9e09a7d8cff8a641c8ee90ad463362fe534e6e44 /src/vehicle_gui.cpp | |
parent | ecfaa0564d9588b9f6826b1033d93b827751f410 (diff) | |
download | openttd-d86e17d65adebad6f0213451b99645be3494ea45.tar.xz |
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9813f8696..4bfb86e47 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1327,7 +1327,7 @@ static const NWidgetPart _nested_vehicle_details_widgets[] = { extern int GetTrainDetailsWndVScroll(VehicleID veh_id, TrainDetailsWindowTabs det_tab); -extern void DrawTrainDetails(const Vehicle *v, int left, int right, int y, int vscroll_pos, uint16 vscroll_cap, TrainDetailsWindowTabs det_tab); +extern void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_pos, uint16 vscroll_cap, TrainDetailsWindowTabs det_tab); extern void DrawRoadVehDetails(const Vehicle *v, int left, int right, int y); extern void DrawShipDetails(const Vehicle *v, int left, int right, int y); extern void DrawAircraftDetails(const Vehicle *v, int left, int right, int y); @@ -1420,7 +1420,7 @@ struct VehicleDetailsWindow : Window { static void DrawVehicleDetails(const Vehicle *v, int left, int right, int y, int vscroll_pos, uint vscroll_cap, TrainDetailsWindowTabs det_tab) { switch (v->type) { - case VEH_TRAIN: DrawTrainDetails(v, left, right, y, vscroll_pos, vscroll_cap, det_tab); break; + case VEH_TRAIN: DrawTrainDetails(Train::From(v), left, right, y, vscroll_pos, vscroll_cap, det_tab); break; case VEH_ROAD: DrawRoadVehDetails(v, left, right, y); break; case VEH_SHIP: DrawShipDetails(v, left, right, y); break; case VEH_AIRCRAFT: DrawAircraftDetails(v, left, right, y); break; |