Skip to content

Commit 6a02c64

Browse files
committed
Ignore cells on different levels when gathering cells for area to fill
1 parent f0a2837 commit 6a02c64

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/TSMapEditor/Helpers.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,12 @@ public static IEnumerable<Point2D> GetFillAreaTiles(MapTile targetTile, Map map,
536536
continue;
537537
}
538538

539+
if (cell.Level != targetTile.Level)
540+
{
541+
tilesToSkip.Add(coords.GetHashCode());
542+
continue;
543+
}
544+
539545
tileGraphics = theaterGraphics.GetTileGraphics(cell.TileIndex);
540546
if (tileGraphics.TileSetId != tileSetId)
541547
{

0 commit comments

Comments
 (0)