1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

A bit more logging cleanup

This commit is contained in:
AlexVinS 2017-08-10 23:47:58 +03:00
parent 143ff682bc
commit c293589c07

View File

@ -34,17 +34,17 @@
CBattleAnimation::CBattleAnimation(CBattleInterface * _owner) CBattleAnimation::CBattleAnimation(CBattleInterface * _owner)
: owner(_owner), ID(_owner->animIDhelper++) : owner(_owner), ID(_owner->animIDhelper++)
{ {
logAnim->traceStream() << "Animation #" << ID << " created"; logAnim->trace("Animation #%d created", ID);
} }
CBattleAnimation::~CBattleAnimation() CBattleAnimation::~CBattleAnimation()
{ {
logAnim->traceStream() << "Animation #" << ID << " deleted"; logAnim->trace("Animation #%d deleted", ID);
} }
void CBattleAnimation::endAnim() void CBattleAnimation::endAnim()
{ {
logAnim->traceStream() << "Animation #" << ID << " ended, type is " << typeid(this).name(); logAnim->trace("Animation #%d ended, type is %s", ID, typeid(this).name());
for(auto & elem : owner->pendingAnims) for(auto & elem : owner->pendingAnims)
{ {
if(elem.first == this) if(elem.first == this)
@ -151,7 +151,7 @@ CDefenceAnimation::CDefenceAnimation(StackAttackedInfo _attackedInfo, CBattleInt
attacker(_attackedInfo.attacker), rangedAttack(_attackedInfo.indirectAttack), attacker(_attackedInfo.attacker), rangedAttack(_attackedInfo.indirectAttack),
killed(_attackedInfo.killed), timeToWait(0) killed(_attackedInfo.killed), timeToWait(0)
{ {
logAnim->debugStream() << "Created defence anim for " << _attackedInfo.defender->getName(); logAnim->debug("Created defence anim for %s", _attackedInfo.defender->getName());
} }
bool CDefenceAnimation::init() bool CDefenceAnimation::init()