Prevent a protocol warning caused by a server side bug

This commit is contained in:
Eduardo Bart 2012-07-30 22:03:34 -03:00
parent 2993853fe0
commit c879ed8642
1 changed files with 10 additions and 0 deletions

View File

@ -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)