mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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.
This commit is contained in:
parent
97ee8287ab
commit
e28d4aff8f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user