Fix #13645: "Follow vehicle" button not raised when following stopped. (#13746)

This commit is contained in:
Peter Nelson
2025-03-06 00:00:57 +00:00
committed by GitHub
parent 47ae285c9d
commit 274b7a0195
4 changed files with 30 additions and 7 deletions
+1 -1
View File
@@ -3479,7 +3479,7 @@ void StopGlobalFollowVehicle(const Vehicle *v)
Window *w = GetMainWindow();
if (w->viewport->follow_vehicle == v->index) {
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos, true); // lock the main view on the vehicle's last position
w->viewport->follow_vehicle = VehicleID::Invalid();
w->viewport->CancelFollow(*w);
}
}