mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 07:53:44 +00:00
fix(CORE): Missing override on various functions (#2602)
This commit is contained in:
@@ -1899,12 +1899,12 @@ GridMap* Map::GetGrid(float x, float y)
|
||||
return GridMaps[gx][gy];
|
||||
}
|
||||
|
||||
float Map::GetWaterOrGroundLevel(float x, float y, float z, float* ground /*= NULL*/, bool /*swim = false*/, float maxSearchDist /*= 50.0f*/) const
|
||||
float Map::GetWaterOrGroundLevel(uint32 phasemask, float x, float y, float z, float* ground /*= NULL*/, bool /*swim = false*/, float maxSearchDist /*= 50.0f*/) const
|
||||
{
|
||||
if (const_cast<Map*>(this)->GetGrid(x, y))
|
||||
{
|
||||
// we need ground level (including grid height version) for proper return water level in point
|
||||
float ground_z = GetHeight(PHASEMASK_NORMAL, x, y, z, true, maxSearchDist);
|
||||
float ground_z = GetHeight(phasemask, x, y, z, true, maxSearchDist);
|
||||
if (ground)
|
||||
*ground = ground_z;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user