mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)
This commit is contained in:
parent
0ac4a9ac98
commit
cd5c6df5f7
@ -833,10 +833,7 @@ static void AircraftDepotWndProc(Window *w, WindowEvent *e)
|
||||
}
|
||||
break;
|
||||
|
||||
case 9: /* scroll to tile */
|
||||
ResetObjectToPlace();
|
||||
ScrollMainWindowToTile(w->window_number);
|
||||
break;
|
||||
case 9: ScrollMainWindowToTile(w->window_number); break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -782,10 +782,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
|
||||
}
|
||||
break;
|
||||
|
||||
case 9: /* scroll to tile */
|
||||
ResetObjectToPlace();
|
||||
ScrollMainWindowToTile(w->window_number);
|
||||
break;
|
||||
case 9: ScrollMainWindowToTile(w->window_number); break;
|
||||
}
|
||||
} break;
|
||||
|
||||
|
@ -773,10 +773,7 @@ static void ShipDepotWndProc(Window *w, WindowEvent *e)
|
||||
}
|
||||
break;
|
||||
|
||||
case 9: /* scroll to tile */
|
||||
ResetObjectToPlace();
|
||||
ScrollMainWindowToTile(w->window_number);
|
||||
break;
|
||||
case 9: ScrollMainWindowToTile(w->window_number); break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -658,10 +658,9 @@ static void TrainDepotWndProc(Window *w, WindowEvent *e)
|
||||
ResetObjectToPlace();
|
||||
ShowBuildTrainWindow(w->window_number);
|
||||
break;
|
||||
case 10:
|
||||
ResetObjectToPlace();
|
||||
ScrollMainWindowToTile(w->window_number);
|
||||
break;
|
||||
|
||||
case 10: ScrollMainWindowToTile(w->window_number); break;
|
||||
|
||||
case 6:
|
||||
TrainDepotClickTrain(w, e->click.pt.x, e->click.pt.y);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user