mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 04:53:29 +01:00
fixed blank tiles not being properly overridden using the individual tiled map renderer
This commit is contained in:
parent
56db141a68
commit
3dcc5fa9f5
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue