diff options
author | rubidium <rubidium@openttd.org> | 2007-08-26 21:21:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-26 21:21:59 +0000 |
commit | 3c919e36a7408b681f9ff7b4a1e5fe6a4d75fe1e (patch) | |
tree | 285ea97aaef2e294fbb6fc9955cd0062ce164eb3 /src/aircraft_gui.cpp | |
parent | a5b32d8d7238ae769a9dc3bcc71aaaba213058b9 (diff) | |
download | openttd-3c919e36a7408b681f9ff7b4a1e5fe6a4d75fe1e.tar.xz |
(svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index 20828d67c..b90ddb3f1 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -57,18 +57,6 @@ void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) } } -/** - * This is the Callback method after the cloning attempt of an aircraft - * @param success indicates completion (or not) of the operation - * @param tile unused - * @param p1 unused - * @param p2 unused - */ -void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) -{ - if (success) ShowAircraftViewWindow(GetVehicle(_new_vehicle_id)); -} - static void AircraftDetailsWndProc(Window *w, WindowEvent *e) { switch (e->event) { @@ -343,7 +331,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) break; case 11: /* clone vehicle */ - DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, CcCloneAircraft, CMD_CLONE_VEHICLE | CMD_MSG(STR_A008_CAN_T_BUILD_AIRCRAFT)); + DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, CcCloneVehicle, CMD_CLONE_VEHICLE | CMD_MSG(STR_A008_CAN_T_BUILD_AIRCRAFT)); break; } } break; |