1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-19 12:02:24 +02:00

Fix typos

This commit is contained in:
Ivan Savenko 2023-03-06 13:19:49 +02:00
parent 0b3c10d990
commit aeb653c919
2 changed files with 4 additions and 4 deletions

View File

@ -211,7 +211,7 @@ void DefenceBehavior::evaluateDefence(Goals::TGoalVec & tasks, const CGTownInsta
if(path.turn() <= treat.turn - 2) if(path.turn() <= treat.turn - 2)
{ {
#if NKAI_TRACE_LEVEL >= 1 #if NKAI_TRACE_LEVEL >= 1
logAi->trace("Deffer defence of %s by %s because he has enough time to rich the town next trun", logAi->trace("Defer defence of %s by %s because he has enough time to reach the town next trun",
town->name, town->name,
path.targetHero->name); path.targetHero->name);
#endif #endif

View File

@ -161,7 +161,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
if(node.turns == 0) if(node.turns == 0)
{ {
logAi->error( logAi->error(
"Enable to complete chain. Expected hero %s to arive to %s but he is at %s", "Unable to complete chain. Expected hero %s to arive to %s but he is at %s",
hero->getNameTranslated(), hero->getNameTranslated(),
node.coord.toString(), node.coord.toString(),
hero->visitablePos().toString()); hero->visitablePos().toString());
@ -169,7 +169,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
return; return;
} }
// no exception means we were not able to rich the tile // no exception means we were not able to reach the tile
ai->nullkiller->lockHero(hero, HeroLockedReason::HERO_CHAIN); ai->nullkiller->lockHero(hero, HeroLockedReason::HERO_CHAIN);
blockedIndexes.insert(node.parentIndex); blockedIndexes.insert(node.parentIndex);
} }
@ -177,7 +177,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
{ {
if(!heroPtr.validAndSet()) if(!heroPtr.validAndSet())
{ {
logAi->debug("Hero %s was killed while attempting to rich %s", heroPtr.name, node.coord.toString()); logAi->debug("Hero %s was killed while attempting to reach %s", heroPtr.name, node.coord.toString());
return; return;
} }