mirror of https://github.com/OpenTTD/OpenTTD
(svn r15733) -Fix: Enabling freeform edges could cause submarines to get stuck on land tiles.
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