mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r1651) Fix: [ 1098696 ] Airport shadow remains after crashing
This commit is contained in:
parent
19c55cbb75
commit
ffb2c4de77
@ -946,11 +946,13 @@ static void HandleCrashedAircraft(Vehicle *v)
|
||||
st = GetStation(v->u.air.targetairport);
|
||||
|
||||
// make aircraft crash down to the ground
|
||||
if ( st->airport_tile==0 && ((v->u.air.crashed_counter % 3) == 0) ) {
|
||||
z = GetSlopeZ(v->x_pos, v->y_pos) + 1;
|
||||
if (v->u.air.crashed_counter < 500 && st->airport_tile==0 && ((v->u.air.crashed_counter % 3) == 0) ) {
|
||||
z = GetSlopeZ(v->x_pos, v->y_pos);
|
||||
v->z_pos -= 1;
|
||||
if (v->z_pos < z)
|
||||
DoDeleteAircraft(v);
|
||||
if (v->z_pos == z) {
|
||||
v->u.air.crashed_counter = 500;
|
||||
v->z_pos++;
|
||||
}
|
||||
}
|
||||
|
||||
if (v->u.air.crashed_counter < 650) {
|
||||
|
Loading…
Reference in New Issue
Block a user