mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Silenced some more logs.
This commit is contained in:
parent
a0f534146c
commit
ed33d99ac7
@ -1359,7 +1359,7 @@ bool CGHeroInstance::hasVisions(const CGObjectInstance * target, const int subty
|
||||
|
||||
const int distance = target->pos.dist2d(getPosition(false));
|
||||
|
||||
logGlobal->debug(boost::to_string(boost::format("Visions: dist %d, mult %d, range %d") % distance % visionsMultiplier % visionsRange));
|
||||
//logGlobal->debug(boost::to_string(boost::format("Visions: dist %d, mult %d, range %d") % distance % visionsMultiplier % visionsRange));
|
||||
|
||||
return (distance < visionsRange) && (target->pos.z == pos.z);
|
||||
}
|
||||
|
@ -655,7 +655,8 @@ do not leave zone border
|
||||
}
|
||||
if (!(result || distance < lastDistance || anotherPos.valid()))
|
||||
{
|
||||
logGlobal->warnStream() << boost::format("No tile closer than %s found on path from %s to %s") % currentPos %src %dst;
|
||||
//FIXME: seemingly this condition is messed up, tells nothing
|
||||
//logGlobal->warnStream() << boost::format("No tile closer than %s found on path from %s to %s") % currentPos %src %dst;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user