mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 16:35:59 +00:00
Feature: Trains with an engine on the rear drive backwards when reversing
This commit is contained in:
+1
-1
@@ -2471,7 +2471,7 @@ static EventState HandleViewportScroll()
|
||||
|
||||
if (_last_scroll_window == GetMainWindow() && _last_scroll_window->viewport->follow_vehicle != VehicleID::Invalid()) {
|
||||
/* If the main window is following a vehicle, then first let go of it! */
|
||||
const Vehicle *veh = Vehicle::Get(_last_scroll_window->viewport->follow_vehicle);
|
||||
const Vehicle *veh = Vehicle::Get(_last_scroll_window->viewport->follow_vehicle)->GetMovingFront();
|
||||
ScrollMainWindowTo(veh->x_pos, veh->y_pos, veh->z_pos, true); // This also resets follow_vehicle
|
||||
return ES_NOT_HANDLED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user