mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +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));
|
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);
|
return (distance < visionsRange) && (target->pos.z == pos.z);
|
||||||
}
|
}
|
||||||
|
@ -655,7 +655,8 @@ do not leave zone border
|
|||||||
}
|
}
|
||||||
if (!(result || distance < lastDistance || anotherPos.valid()))
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user