Skip to content

Commit

Permalink
Fix drawing statics under nodraw land
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jan 19, 2024
1 parent f084a38 commit 7ab8148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Map/MapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ private void DrawStatic(StaticObject so, Vector3 hueOverride = default)
return;

var landTile = LandTiles[so.Tile.X, so.Tile.Y]?.Tile;
if (!WithinZRange(tile.Z) || landTile != null && WithinZRange(landTile.Z) && landTile.Z > tile.Z + 5)
if (!WithinZRange(tile.Z) || landTile != null && CanDrawLand(landTile.Id) && WithinZRange(landTile.Z) && landTile.Z > tile.Z + 5)
return;

_mapRenderer.DrawMapObject(so, hueOverride);
Expand Down

0 comments on commit 7ab8148

Please sign in to comment.