From 0829604b4ff0f49c92bb1208d1d91f60718e179e Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 28 Mar 2025 20:23:18 +0000 Subject: [PATCH] Fix #13908: Require double click on order to change stop location. (#13913) --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index b128c38e31..a3a285ca35 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1228,7 +1228,7 @@ public: /* Deselect clicked order */ this->selected_order = -1; } else if (sel == this->selected_order) { - if (this->vehicle->type == VEH_TRAIN && sel < this->vehicle->GetNumOrders()) { + if (click_count > 1 && this->vehicle->type == VEH_TRAIN && sel < this->vehicle->GetNumOrders()) { Command::Post(STR_ERROR_CAN_T_MODIFY_THIS_ORDER, this->vehicle->tile, this->vehicle->index, sel, MOF_STOP_LOCATION, (this->vehicle->GetOrder(sel)->GetStopLocation() + 1) % OSL_END);