From 609cad72d947239d059836d83e189c7475421143 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 24 Jan 2015 22:22:30 -0600 Subject: [PATCH] Convert Entity::CastToNPC to Log.Out with EQDEBUG remove --- zone/entity.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index c8471d9a4..09a5b8be1 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -79,7 +79,7 @@ Client *Entity::CastToClient() } if (!IsClient()) { - Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)"); + Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)"); return 0; } @@ -88,12 +88,10 @@ Client *Entity::CastToClient() NPC *Entity::CastToNPC() { -#ifdef _EQDEBUG if (!IsNPC()) { - std::cout << "CastToNPC error" << std::endl; + Log.Out(Logs::General, Logs::Error, "CastToNPC error (Not NPC)"); return 0; } -#endif return static_cast(this); }