mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Maps: Use a fixed offset instead of full collision height when retrieving floor Z
This commit is contained in:
committed by
Ovahlord
parent
4343dd6d55
commit
c12531b023
@@ -2543,7 +2543,7 @@ float Map::GetWaterOrGroundLevel(PhaseShift const& phaseShift, float x, float y,
|
||||
if (GetGrid(PhasingHandler::GetTerrainMapId(phaseShift, this, x, y), x, y))
|
||||
{
|
||||
// we need ground level (including grid height version) for proper return water level in point
|
||||
float ground_z = GetHeight(phaseShift, x, y, z + collisionHeight);
|
||||
float ground_z = GetHeight(phaseShift, x, y, z + Z_OFFSET_FIND_HEIGHT);
|
||||
if (ground)
|
||||
*ground = ground_z;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user