From af293142fede91cc31e98c7e05d9ecfef752b077 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 15 Mar 2009 15:25:18 +0000 Subject: (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 35abaf5f3..a1b69e2d7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1651,7 +1651,7 @@ static bool HandleViewportScroll() if (w == FindWindowById(WC_MAIN_WINDOW, 0) && w->viewport->follow_vehicle != INVALID_VEHICLE) { /* If the main window is following a vehicle, then first let go of it! */ const Vehicle *veh = GetVehicle(w->viewport->follow_vehicle); - ScrollMainWindowTo(veh->x_pos, veh->y_pos, true); // This also resets follow_vehicle + ScrollMainWindowTo(veh->x_pos, veh->y_pos, veh->z_pos, true); // This also resets follow_vehicle return true; } -- cgit v1.2.3-54-g00ecf