diff options
author | rubidium <rubidium@openttd.org> | 2010-10-08 21:23:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-08 21:23:41 +0000 |
commit | 328c00f24e83436182c69ce1f81962c267df27b1 (patch) | |
tree | 7e35f19c5535fbcebd8ccca4974892623a21f268 /src | |
parent | 7bbc19288f33a2c68daebdc9c31de84ef91e37c9 (diff) | |
download | openttd-328c00f24e83436182c69ce1f81962c267df27b1.tar.xz |
(svn r20910) -Fix [FS#4155]: helicopters fired a bit too late
Diffstat (limited to 'src')
-rw-r--r-- | src/disaster_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index 7e86c0db3..faac56b00 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; |