mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11185] Not use local varibale name same as function name.
This commit is contained in:
parent
f5d69052e1
commit
71d672062e
2 changed files with 3 additions and 3 deletions
|
|
@ -1396,9 +1396,9 @@ void WorldObject::UpdateAllowedPositionZ(float x, float y, float &z) const
|
|||
// non swim unit must be at ground (mostly speedup, because it don't must be in water and water level check less fast
|
||||
if (!((Creature const*)this)->CanFly())
|
||||
{
|
||||
bool CanSwim = ((Creature const*)this)->CanSwim();
|
||||
bool canSwim = ((Creature const*)this)->CanSwim();
|
||||
float ground_z = z;
|
||||
float max_z = CanSwim
|
||||
float max_z = canSwim
|
||||
? GetTerrain()->GetWaterOrGroundLevel(x, y, z, &ground_z, !((Unit const*)this)->HasAuraType(SPELL_AURA_WATER_WALK))
|
||||
: ((ground_z = GetTerrain()->GetHeight(x, y, z, true)));
|
||||
if (max_z > INVALID_HEIGHT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue