diff options
author | Darkvater <Darkvater@openttd.org> | 2007-01-15 00:09:25 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2007-01-15 00:09:25 +0000 |
commit | e28d4aff8f814667e406e15d872b3063d6eb11d4 (patch) | |
tree | 40190fabfd4a590639472e0b728a58edd71eff21 /src | |
parent | 97ee8287ab01538d1b1f56a520527bc82d3af91d (diff) | |
download | openttd-e28d4aff8f814667e406e15d872b3063d6eb11d4.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.cpp | 2 |
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) |