From 10564486e302c5ca2c4d10c8e76bf2408bf5ffab Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 8 Oct 2010 21:23:41 +0000 Subject: [PATCH] (svn r20910) -Fix [FS#4155]: helicopters fired a bit too late --- src/disaster_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index 7e86c0db3e..faac56b00d 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -424,7 +424,7 @@ static bool DisasterTick_Aircraft(DisasterVehicle *v, uint16 image_override, boo SndPlayTileFx(SND_12_EXPLOSION, i->location.tile); } } else if (v->current_order.GetDestination() == 0) { - int x = v->x_pos - (15 * TILE_SIZE); + int x = v->x_pos + ((leave_at_top ? -15 : 15) * TILE_SIZE); int y = v->y_pos; if ((uint)x > MapMaxX() * TILE_SIZE - 1) return true;