From 6a02c64ece53fda2d9c86a91dd39c96e88380deb Mon Sep 17 00:00:00 2001 From: Rampastring Date: Sun, 23 Jun 2024 13:05:23 +0300 Subject: [PATCH] Ignore cells on different levels when gathering cells for area to fill --- src/TSMapEditor/Helpers.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TSMapEditor/Helpers.cs b/src/TSMapEditor/Helpers.cs index c0a5477b..10cd4139 100644 --- a/src/TSMapEditor/Helpers.cs +++ b/src/TSMapEditor/Helpers.cs @@ -536,6 +536,12 @@ public static IEnumerable 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) {