From 404a4eb0a5a71b8bc35ee1dba27846ffe4052085 Mon Sep 17 00:00:00 2001 From: kaczy Date: Sun, 6 Oct 2024 09:46:11 +0200 Subject: [PATCH] Fixed CanDrawLand --- 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 4bed29c..4058795 100644 --- a/CentrED/Map/MapManager.cs +++ b/CentrED/Map/MapManager.cs @@ -910,7 +910,7 @@ public Vector3 Unproject(int x, int y, int z) private bool CanDrawLand(LandObject lo) { - if(lo.Tile.Id <= 2 && !ShowNoDraw) + if(!ShowLand || (lo.Tile.Id <= 2 && !ShowNoDraw)) return false; return WithinZRange(lo.Tile.Z); }