From d11622b9a0030ea7c387c78c913e284754f17b5c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 5 Apr 2024 08:17:42 +0100 Subject: [PATCH] Fix #12114: Viewport coords of crashed aircraft not updated when falling. (#12424) This results in the aircraft glitching as the wrong viewport area is drawn. --- src/aircraft_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index a85bc5c71b..ebb5c530d8 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1186,6 +1186,7 @@ static bool HandleCrashedAircraft(Aircraft *v) v->crashed_counter = 500; v->z_pos++; } + SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); } if (v->crashed_counter < 650) {