From cc6528ad7bce71d3631095afe222d7fe47dd2995 Mon Sep 17 00:00:00 2001 From: acidmanifesto Date: Sun, 1 May 2022 08:44:03 -0400 Subject: [PATCH] Fix (core) water level and ground level correction (#11552) We do not need to excessively have ground level be -2 below the player when underwater. ground level is ground level. no need for a lower adjustment. Most likely left over from from when the shallow water calculations was wrong entirely that lead to false hits with water walking detection due to core side calculations. --- src/server/game/Maps/Map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 733714004..ecf9227f1 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -1952,7 +1952,7 @@ inline LiquidData const GridMap::GetLiquidData(float x, float y, float z, float float ground_level = getHeight(x, y); // Check water level and ground level - if (liquid_level >= ground_level && z >= ground_level - 2) + if (liquid_level >= ground_level && z >= ground_level) { // All ok in water -> store data liquidData.Entry = entry;