summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-26 21:21:59 +0000
committerrubidium <rubidium@openttd.org>2007-08-26 21:21:59 +0000
commit9e630945b2dcfcae4e0bfb8160d88200555eab50 (patch)
tree285ea97aaef2e294fbb6fc9955cd0062ce164eb3 /src/train_gui.cpp
parent91d18ebd17ef4f71e0663ee7affcb7ab6e4747f6 (diff)
downloadopenttd-9e630945b2dcfcae4e0bfb8160d88200555eab50.tar.xz
(svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index b61c1c598..378d874ad 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -59,11 +59,6 @@ void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2)
ShowTrainViewWindow(v);
}
-void CcCloneTrain(bool success, TileIndex tile, uint32 p1, uint32 p2)
-{
- if (success) ShowTrainViewWindow(GetVehicle(_new_vehicle_id));
-}
-
/**
* Get the number of pixels for the given wagon length.
* @param len Length measured in 1/8ths of a standard wagon.
@@ -268,7 +263,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
ShowVehicleRefitWindow(v, INVALID_VEH_ORDER_ID);
break;
case 13:
- DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, NULL, CMD_CLONE_VEHICLE | CMD_MSG(STR_882B_CAN_T_BUILD_RAILROAD_VEHICLE));
+ DoCommandP(v->tile, v->index, _ctrl_pressed ? 1 : 0, CcCloneVehicle, CMD_CLONE_VEHICLE | CMD_MSG(STR_882B_CAN_T_BUILD_RAILROAD_VEHICLE));
break;
}
} break;