Add ctrl-click scroll to for non-destination orders

Conditional orders on station cargo and show as via orders
This commit is contained in:
Jonathan G Rennison
2024-03-16 17:32:45 +00:00
parent 3284bd68e3
commit 1532c96ca7
3 changed files with 26 additions and 0 deletions

View File

@@ -2811,6 +2811,7 @@ public:
if (_ctrl_pressed && sel < this->vehicle->GetNumOrders()) {
TileIndex xy = this->vehicle->GetOrder(sel)->GetLocation(this->vehicle);
if (xy == INVALID_TILE) xy = this->vehicle->GetOrder(sel)->GetAuxiliaryLocation(_shift_pressed);
if (xy != INVALID_TILE) ScrollMainWindowToTile(xy);
return;
}