Prevent a protocol warning caused by a server side bug
This commit is contained in:
parent
2993853fe0
commit
c879ed8642
|
@ -732,8 +732,13 @@ void ProtocolGame::parseCreatureHealth(const InputMessagePtr& msg)
|
||||||
CreaturePtr creature = g_map.getCreatureById(id);
|
CreaturePtr creature = g_map.getCreatureById(id);
|
||||||
if(creature)
|
if(creature)
|
||||||
creature->setHealthPercent(healthPercent);
|
creature->setHealthPercent(healthPercent);
|
||||||
|
|
||||||
|
// some servers has a bug in get spectators and sends unknown creatures updates
|
||||||
|
// so this code is disabled
|
||||||
|
/*
|
||||||
else
|
else
|
||||||
g_logger.traceError("could not get creature");
|
g_logger.traceError("could not get creature");
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProtocolGame::parseCreatureLight(const InputMessagePtr& msg)
|
void ProtocolGame::parseCreatureLight(const InputMessagePtr& msg)
|
||||||
|
@ -771,8 +776,13 @@ void ProtocolGame::parseCreatureSpeed(const InputMessagePtr& msg)
|
||||||
CreaturePtr creature = g_map.getCreatureById(id);
|
CreaturePtr creature = g_map.getCreatureById(id);
|
||||||
if(creature)
|
if(creature)
|
||||||
creature->setSpeed(speed);
|
creature->setSpeed(speed);
|
||||||
|
|
||||||
|
// some servers has a bug in get spectators and sends unknown creatures updates
|
||||||
|
// so this code is disabled
|
||||||
|
/*
|
||||||
else
|
else
|
||||||
g_logger.traceError("could not get creature");
|
g_logger.traceError("could not get creature");
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProtocolGame::parseCreatureSkulls(const InputMessagePtr& msg)
|
void ProtocolGame::parseCreatureSkulls(const InputMessagePtr& msg)
|
||||||
|
|
Loading…
Reference in New Issue