summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-15 00:09:25 +0000
committerDarkvater <darkvater@openttd.org>2007-01-15 00:09:25 +0000
commitc430f2a54332a70fa6269fbf00281da2cfd5f8f7 (patch)
tree40190fabfd4a590639472e0b728a58edd71eff21 /src
parentfd383668f85f6f62c3f4ae656a7c7e5be571ad1e (diff)
downloadopenttd-c430f2a54332a70fa6269fbf00281da2cfd5f8f7.tar.xz
(svn r8140) -Fix [FS#54]: Combat helicopter flies past factory before it shoots. Chopper comes from the north-east, so it looks in +15 direction (forward), not -15 direction. Probably bad copy-paste from airplane-destroys-oil-refinery disaster.
Diffstat (limited to 'src')
-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 9472771ca..c63401800 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -477,7 +477,7 @@ static void DisasterTick_3(Vehicle *v)
TileIndex tile;
uint ind;
- x = v->x_pos - 15 * TILE_SIZE;
+ x = v->x_pos + (15 * TILE_SIZE);
y = v->y_pos;
if ( (uint)x > MapMaxX() * TILE_SIZE - 1)