mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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
|
|
@ -2011,4 +2011,10 @@ bool WorldObject::IsControlledByPlayer() const
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool WorldObject::PrintCoordinatesError(float x, float y, float z, char const* descr) const
|
||||
{
|
||||
sLog.outError("%s with invalid %s coordinates: mapid = %uu, x = %f, y = %f, z = %f", GetGuidStr().c_str(), descr, GetMapId(), x, y, z);
|
||||
return false; // always false for continue assert fail
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue