summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-08 21:23:41 +0000
committerrubidium <rubidium@openttd.org>2010-10-08 21:23:41 +0000
commit328c00f24e83436182c69ce1f81962c267df27b1 (patch)
tree7e35f19c5535fbcebd8ccca4974892623a21f268
parent7bbc19288f33a2c68daebdc9c31de84ef91e37c9 (diff)
downloadopenttd-328c00f24e83436182c69ce1f81962c267df27b1.tar.xz
(svn r20910) -Fix [FS#4155]: helicopters fired a bit too late
-rw-r--r--src/disaster_cmd.cpp2
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;