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 | c430f2a54332a70fa6269fbf00281da2cfd5f8f7 (patch) | |
tree | 40190fabfd4a590639472e0b728a58edd71eff21 /src | |
parent | fd383668f85f6f62c3f4ae656a7c7e5be571ad1e (diff) | |
download | openttd-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.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) |