Skip to content

Commit

Permalink
Ignore cells on different levels when gathering cells for area to fill
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Jun 23, 2024
1 parent f0a2837 commit 6a02c64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TSMapEditor/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,12 @@ public static IEnumerable<Point2D> GetFillAreaTiles(MapTile targetTile, Map map,
continue;
}

if (cell.Level != targetTile.Level)
{
tilesToSkip.Add(coords.GetHashCode());
continue;
}

tileGraphics = theaterGraphics.GetTileGraphics(cell.TileIndex);
if (tileGraphics.TileSetId != tileSetId)
{
Expand Down

0 comments on commit 6a02c64

Please sign in to comment.