Skip to content

Commit

Permalink
Empty tile only filter fix (#27)
Browse files Browse the repository at this point in the history
* Empty tile only filter fix

* used CanDrawStatic
  • Loading branch information
DavideRei authored Oct 2, 2024
1 parent bf75aa3 commit 39d8135
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CentrED/Tools/DrawTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ protected override void GhostApply(TileObject? o)
{
if (o is StaticObject)
{
return;
if (MapManager.CanDrawStatic((StaticObject)o))
{
return;
}
}
else if(o is VirtualLayerTile)
{
Expand All @@ -115,7 +118,10 @@ protected override void GhostApply(TileObject? o)
{
if (so2.StaticTile.Z == o.Tile.Z)
{
return;
if (MapManager.CanDrawStatic((StaticObject)so2))
{
return;
}
}
}
}
Expand Down

0 comments on commit 39d8135

Please sign in to comment.