summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-02-02 12:54:29 +0000
committerfrosch <frosch@openttd.org>2013-02-02 12:54:29 +0000
commitc3832ffb7fd0df12bde428391f9d5bd7ffb427cd (patch)
treedab29efbcf0a4bcb24efbd59fea230eb745a22eb
parent6f147013ad525290e7b072824f8b7e62c317ee4e (diff)
downloadopenttd-c3832ffb7fd0df12bde428391f9d5bd7ffb427cd.tar.xz
(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.
-rw-r--r--src/depot_gui.cpp3
1 files changed, 1 insertions, 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;