Core/MMaps: Removed an incorrect call to GetHeight
Tools/MeshExtractor: Fixed a crash caused by calling fclose in a NULL stream
This commit is contained in:
1 parent
987436ceea
commit
5c9e917e5e
2 files changed
+3
-6
No files matched your search
@@ -58,12 +58,8 @@ bool PathGenerator::CalculatePath(float destX, float destY, float destZ, bool fo
|
||||
if (!Trinity::IsValidMapCoord(destX, destY, destZ) || !Trinity::IsValidMapCoord(x, y, z))
|
||||
return false;
|
||||
|
||||
float newDestZ = _sourceUnit->GetBaseMap()->GetHeight(_sourceUnit->GetPhaseMask(), x, y, z, true, MAX_FALL_DISTANCE);
|
||||
if (newDestZ <= INVALID_HEIGHT)
|
||||
return false;
|
||||
|
||||
Vector3 oldDest = GetEndPosition();
|
||||
Vector3 dest(destX, destY, newDestZ);
|
||||
Vector3 dest(destX, destY, destZ);
|
||||
SetEndPosition(dest);
|
||||
|
||||
Vector3 start(x, y, z);
|
||||
|
||||
Reference in new issue
Block a user