From 7ab8148b037c5d74abfab738f52d225a0757d598 Mon Sep 17 00:00:00 2001 From: kaczy Date: Fri, 19 Jan 2024 22:20:14 +0100 Subject: [PATCH] Fix drawing statics under nodraw land --- CentrED/Map/MapManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CentrED/Map/MapManager.cs b/CentrED/Map/MapManager.cs index 5463e28..5d70cb1 100644 --- a/CentrED/Map/MapManager.cs +++ b/CentrED/Map/MapManager.cs @@ -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);