1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix logging of received network packs on client

This commit is contained in:
Ivan Savenko 2024-04-17 18:17:49 +03:00
parent 6901825b62
commit 9f47a2e6aa

View File

@ -518,15 +518,15 @@ void CClient::handlePack(CPack * pack)
if(apply)
{
apply->applyOnClBefore(this, pack);
logNetwork->trace("\tMade first apply on cl: %s", typeid(pack).name());
logNetwork->trace("\tMade first apply on cl: %s", typeid(*pack).name());
gs->apply(pack);
logNetwork->trace("\tApplied on gs: %s", typeid(pack).name());
logNetwork->trace("\tApplied on gs: %s", typeid(*pack).name());
apply->applyOnClAfter(this, pack);
logNetwork->trace("\tMade second apply on cl: %s", typeid(pack).name());
logNetwork->trace("\tMade second apply on cl: %s", typeid(*pack).name());
}
else
{
logNetwork->error("Message %s cannot be applied, cannot find applier!", typeid(pack).name());
logNetwork->error("Message %s cannot be applied, cannot find applier!", typeid(*pack).name());
}
delete pack;
}