Changeset - r19999:d0536c4ec3cd
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2013-02-02 12:54:29
frosch@openttd.org
(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.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/depot_gui.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)