1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

fixed blank tiles not being properly overridden using the individual tiled map renderer

This commit is contained in:
Ellpeck 2019-12-01 16:57:34 +01:00
parent 56db141a68
commit 3dcc5fa9f5

View file

@ -34,8 +34,10 @@ namespace MLEM.Extended.Tiled {
public void UpdateDrawInfo(int layerIndex, int x, int y) { public void UpdateDrawInfo(int layerIndex, int x, int y) {
var layer = this.map.TileLayers[layerIndex]; var layer = this.map.TileLayers[layerIndex];
var tile = layer.GetTile(x, y); var tile = layer.GetTile(x, y);
if (tile.IsBlank) if (tile.IsBlank) {
this.drawInfos[layerIndex, x, y] = null;
return; return;
}
var tileset = tile.GetTileset(this.map); var tileset = tile.GetTileset(this.map);
var source = tileset.GetTileRegion(tile.GetLocalIdentifier(tileset, this.map)); var source = tileset.GetTileRegion(tile.GetLocalIdentifier(tileset, this.map));
var pos = new Point(x, y); var pos = new Point(x, y);