Prevent a protocol warning caused by a server side bug

master
Eduardo Bart 12 years ago
parent 2993853fe0
commit c879ed8642

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

Loading…
Cancel
Save