From 9e630945b2dcfcae4e0bfb8160d88200555eab50 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Aug 2007 21:21:59 +0000 Subject: (svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle. --- src/roadveh_gui.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/roadveh_gui.cpp') diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index f885df017..d301a482e 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -263,11 +263,6 @@ static void ShowRoadVehDetailsWindow(const Vehicle *v) w->caption_color = v->owner; } -void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2) -{ - if (success) ShowRoadVehViewWindow(GetVehicle(_new_vehicle_id)); -} - static void RoadVehViewWndProc(Window *w, WindowEvent *e) { switch (e->event) { @@ -357,7 +352,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e) ShowRoadVehDetailsWindow(v); break; case 11: /* clone vehicle */ - DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, CcCloneRoadVeh, CMD_CLONE_VEHICLE | CMD_MSG(STR_9009_CAN_T_BUILD_ROAD_VEHICLE)); + DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, CcCloneVehicle, CMD_CLONE_VEHICLE | CMD_MSG(STR_9009_CAN_T_BUILD_ROAD_VEHICLE)); break; case 12: /* Refit vehicle */ ShowVehicleRefitWindow(v, INVALID_VEH_ORDER_ID); -- cgit v1.2.3-70-g09d2