changeset 7867 | aa068f4c2c9b |
parent 7850 | 1001568e7551 |
child 7922 | a7e266f966d9 |
--- 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; } }