# HG changeset patch # User belugas # Date 1194829952 0 # Node ID 2ec71a6debd1f69bac6071ce7b7fa73f53bc39dd # Parent 6b3ddf7a6a99b29ddac26f9a9ea7abe13eafac3c (svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed diff -r 6b3ddf7a6a99 -r 2ec71a6debd1 src/vehicle.cpp --- a/src/vehicle.cpp Mon Nov 12 01:05:35 2007 +0000 +++ b/src/vehicle.cpp Mon Nov 12 01:12:32 2007 +0000 @@ -541,6 +541,7 @@ 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; } }