(svn r15733) -Fix: Enabling freeform edges could cause submarines to get stuck on land tiles.

This commit is contained in:
yexo 2009-03-15 21:49:37 +00:00
parent deab21114e
commit 42e0a5d2ca

View File

@ -889,8 +889,10 @@ static void Disaster_Submarine_Init(DisasterSubType subtype)
dir = DIR_NW;
} else {
y = TILE_SIZE / 2;
if (_settings_game.construction.freeform_edges) y += TILE_SIZE;
dir = DIR_SE;
}
if (!IsWaterTile(TileVirtXY(x, y))) return;
Vehicle *v = new DisasterVehicle();
InitializeDisasterVehicle(v, x, y, 0, dir, subtype);