From 3dcc5fa9f54c508c2b341707e3c4b49378f3d506 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 1 Dec 2019 16:57:34 +0100 Subject: [PATCH] fixed blank tiles not being properly overridden using the individual tiled map renderer --- MLEM.Extended/Tiled/IndividualTiledMapRenderer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MLEM.Extended/Tiled/IndividualTiledMapRenderer.cs b/MLEM.Extended/Tiled/IndividualTiledMapRenderer.cs index e1693ad..4c035ea 100644 --- a/MLEM.Extended/Tiled/IndividualTiledMapRenderer.cs +++ b/MLEM.Extended/Tiled/IndividualTiledMapRenderer.cs @@ -34,8 +34,10 @@ namespace MLEM.Extended.Tiled { public void UpdateDrawInfo(int layerIndex, int x, int y) { var layer = this.map.TileLayers[layerIndex]; var tile = layer.GetTile(x, y); - if (tile.IsBlank) + if (tile.IsBlank) { + this.drawInfos[layerIndex, x, y] = null; return; + } var tileset = tile.GetTileset(this.map); var source = tileset.GetTileRegion(tile.GetLocalIdentifier(tileset, this.map)); var pos = new Point(x, y);