1
0
Fork 0

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

pull/12808/head
Steve Goldman 2024-06-25 17:07:13 -05:00
parent be6317b4ff
commit aae80ae016
1 changed files with 1 additions and 1 deletions

View File

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