1
0
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:
DjWarmonger 2015-03-28 22:17:45 +01:00
parent a0f534146c
commit ed33d99ac7
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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;
} }
} }