From c879ed8642748b4d999c27cf97a7c86ca0a6443a Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 30 Jul 2012 22:03:34 -0300 Subject: [PATCH] Prevent a protocol warning caused by a server side bug --- src/otclient/protocolgameparse.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/otclient/protocolgameparse.cpp b/src/otclient/protocolgameparse.cpp index e20c4756..f1767db8 100644 --- a/src/otclient/protocolgameparse.cpp +++ b/src/otclient/protocolgameparse.cpp @@ -732,8 +732,13 @@ void ProtocolGame::parseCreatureHealth(const InputMessagePtr& msg) CreaturePtr creature = g_map.getCreatureById(id); if(creature) creature->setHealthPercent(healthPercent); + + // some servers has a bug in get spectators and sends unknown creatures updates + // so this code is disabled + /* else g_logger.traceError("could not get creature"); + */ } void ProtocolGame::parseCreatureLight(const InputMessagePtr& msg) @@ -771,8 +776,13 @@ void ProtocolGame::parseCreatureSpeed(const InputMessagePtr& msg) CreaturePtr creature = g_map.getCreatureById(id); if(creature) creature->setSpeed(speed); + + // some servers has a bug in get spectators and sends unknown creatures updates + // so this code is disabled + /* else g_logger.traceError("could not get creature"); + */ } void ProtocolGame::parseCreatureSkulls(const InputMessagePtr& msg)