(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.
authorDarkvater
Mon, 15 Jan 2007 00:09:25 +0000
changeset 5931 1d832a07c2d6
parent 5930 d382ef7347c2
child 5932 fe0b8f92f014
(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
--- a/src/disaster_cmd.cpp	Sun Jan 14 23:43:59 2007 +0000
+++ b/src/disaster_cmd.cpp	Mon Jan 15 00:09:25 2007 +0000
@@ -477,7 +477,7 @@
 		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)