From c3832ffb7fd0df12bde428391f9d5bd7ffb427cd Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 2 Feb 2013 12:54:29 +0000 Subject: (svn r24955) -Change (r24808) [FS#4458]: Revert to opening the vehicle GUI again when cloning vehicles using the clone-button from the depot GUI. This button cannot be used for sequential cloning, so the argument about opening many windows does not hold as it does for the clone button from the vehicle GUI. --- src/depot_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 843a77648..b16e40ae2 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -842,8 +842,7 @@ struct DepotWindow : Window { */ virtual bool OnVehicleSelect(const Vehicle *v) { - /* Suppress the vehicle GUI when share-cloning. There is no point to it, starting vehicles can also be done via the depot GUI. */ - if (DoCommandP(this->window_number, v->index, _ctrl_pressed ? 1 : 0, CMD_CLONE_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_BUY_TRAIN + v->type), _ctrl_pressed ? NULL : CcCloneVehicle)) { + if (DoCommandP(this->window_number, v->index, _ctrl_pressed ? 1 : 0, CMD_CLONE_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_BUY_TRAIN + v->type), CcCloneVehicle)) { ResetObjectToPlace(); } return true; -- cgit v1.2.3-54-g00ecf