From ffb2c4de778acd8bb35b43c44b65bb10af05e137 Mon Sep 17 00:00:00 2001 From: dominik Date: Mon, 24 Jan 2005 22:09:20 +0000 Subject: [PATCH] (svn r1651) Fix: [ 1098696 ] Airport shadow remains after crashing --- aircraft_cmd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 8f834ea384..5da4b6929b 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -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) {