mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r15733) -Fix: Enabling freeform edges could cause submarines to get stuck on land tiles.
This commit is contained in:
parent
deab21114e
commit
42e0a5d2ca
@ -889,8 +889,10 @@ static void Disaster_Submarine_Init(DisasterSubType subtype)
|
|||||||
dir = DIR_NW;
|
dir = DIR_NW;
|
||||||
} else {
|
} else {
|
||||||
y = TILE_SIZE / 2;
|
y = TILE_SIZE / 2;
|
||||||
|
if (_settings_game.construction.freeform_edges) y += TILE_SIZE;
|
||||||
dir = DIR_SE;
|
dir = DIR_SE;
|
||||||
}
|
}
|
||||||
|
if (!IsWaterTile(TileVirtXY(x, y))) return;
|
||||||
|
|
||||||
Vehicle *v = new DisasterVehicle();
|
Vehicle *v = new DisasterVehicle();
|
||||||
InitializeDisasterVehicle(v, x, y, 0, dir, subtype);
|
InitializeDisasterVehicle(v, x, y, 0, dir, subtype);
|
||||||
|
Loading…
Reference in New Issue
Block a user