mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 01:32:25 +00:00
Convert Entity::CastToNPC to Log.Out with EQDEBUG remove
This commit is contained in:
parent
a31ad485e4
commit
609cad72d9
@ -79,7 +79,7 @@ Client *Entity::CastToClient()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!IsClient()) {
|
if (!IsClient()) {
|
||||||
Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)");
|
Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,12 +88,10 @@ Client *Entity::CastToClient()
|
|||||||
|
|
||||||
NPC *Entity::CastToNPC()
|
NPC *Entity::CastToNPC()
|
||||||
{
|
{
|
||||||
#ifdef _EQDEBUG
|
|
||||||
if (!IsNPC()) {
|
if (!IsNPC()) {
|
||||||
std::cout << "CastToNPC error" << std::endl;
|
Log.Out(Logs::General, Logs::Error, "CastToNPC error (Not NPC)");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return static_cast<NPC *>(this);
|
return static_cast<NPC *>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user