1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

Fix: Main viewport can begin following a vehicle at any zoom

This commit is contained in:
Steve Goldman
2024-06-25 17:07:13 -05:00
parent be6317b4ff
commit aae80ae016

View File

@@ -3234,7 +3234,7 @@ public:
ShowExtraViewportWindow(TileVirtXY(v->x_pos, v->y_pos));
} else {
const Window *mainwindow = GetMainWindow();
if (click_count > 1 && mainwindow->viewport->zoom <= ZOOM_LVL_NORMAL) {
if (click_count > 1) {
/* main window 'follows' vehicle */
mainwindow->viewport->follow_vehicle = v->index;
} else {