mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11325] Made recently added coordinates check only for debug build mode.
This commit is contained in:
parent
633b84b235
commit
96045a86e3
5 changed files with 11 additions and 7 deletions
|
|
@ -2142,11 +2142,7 @@ void Creature::GetRespawnCoord( float &x, float &y, float &z, float* ori, float*
|
|||
}
|
||||
|
||||
//lets check if our creatures have valid spawn coordinates
|
||||
if(!MaNGOS::IsValidMapCoord(x, y, z))
|
||||
{
|
||||
sLog.outError("Creature with invalid respawn coordinates: mapid = %u, guid = %u, x = %f, y = %f, z = %f", GetMapId(), GetGUIDLow(), x, y, z);
|
||||
MANGOS_ASSERT(false);
|
||||
}
|
||||
MANGOS_ASSERT(MaNGOS::IsValidMapCoord(x, y, z) || PrintCoordinatesError(x, y, z, "respawn"));
|
||||
}
|
||||
|
||||
void Creature::AllLootRemovedFromCorpse()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue