mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +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) {
|
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);
|
||||||
|
|
Loading…
Reference in a new issue