1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

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.
This commit is contained in:
2024-04-05 08:17:42 +01:00
committed by GitHub
parent df3e5ade11
commit d11622b9a0

@@ -1186,6 +1186,7 @@ static bool HandleCrashedAircraft(Aircraft *v)
v->crashed_counter = 500; v->crashed_counter = 500;
v->z_pos++; v->z_pos++;
} }
SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos);
} }
if (v->crashed_counter < 650) { if (v->crashed_counter < 650) {