From 2571f025948012e9b4f435c2c77d056ed79ba8f1 Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 12 Nov 2007 01:12:32 +0000 Subject: (svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed --- src/vehicle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index eb655b49b..3288c2dc8 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -541,6 +541,7 @@ void Vehicle::PreDestructor() FOR_ALL_WINDOWS(wp) { Window *w = *wp; if (w->viewport != NULL && WP(w, vp_d).follow_vehicle == this->index) { + ScrollMainWindowTo(this->x_pos, this->y_pos); // lock the main view on the vehicle's last position WP(w, vp_d).follow_vehicle = INVALID_VEHICLE; } } -- cgit v1.2.3-70-g09d2