mirror of https://github.com/OpenTTD/OpenTTD
Fix #13908: Require double click on order to change stop location.
parent
a361841848
commit
5c3cd79adf
|
@ -1228,7 +1228,7 @@ public:
|
||||||
/* Deselect clicked order */
|
/* Deselect clicked order */
|
||||||
this->selected_order = -1;
|
this->selected_order = -1;
|
||||||
} else if (sel == this->selected_order) {
|
} 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<CMD_MODIFY_ORDER>::Post(STR_ERROR_CAN_T_MODIFY_THIS_ORDER,
|
Command<CMD_MODIFY_ORDER>::Post(STR_ERROR_CAN_T_MODIFY_THIS_ORDER,
|
||||||
this->vehicle->tile, this->vehicle->index, sel,
|
this->vehicle->tile, this->vehicle->index, sel,
|
||||||
MOF_STOP_LOCATION, (this->vehicle->GetOrder(sel)->GetStopLocation() + 1) % OSL_END);
|
MOF_STOP_LOCATION, (this->vehicle->GetOrder(sel)->GetStopLocation() + 1) % OSL_END);
|
||||||
|
|
Loading…
Reference in New Issue