From c430f2a54332a70fa6269fbf00281da2cfd5f8f7 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 15 Jan 2007 00:09:25 +0000 Subject: (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. --- src/disaster_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/disaster_cmd.cpp') 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) -- cgit v1.2.3-54-g00ecf