From 759f85767b55c0b6c3884dfbe5626cd0845d62f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Fri, 1 Jun 2012 16:14:33 +0000 Subject: [PATCH] Solved #985. --- AI/VCAI/VCAI.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index 456e0a7c2..4ecb14d96 100644 --- a/AI/VCAI/VCAI.cpp +++ b/AI/VCAI/VCAI.cpp @@ -1716,7 +1716,7 @@ void VCAI::tryRealize(CGoal g) { case EXPLORE: { - assert(0); //this goal is not elementar! + throw cannotFulfillGoalException("EXPLORE is not a elementar goal!"); } break; case RECRUIT_HERO: @@ -2079,7 +2079,7 @@ int3 VCAI::explorationBestNeighbour(int3 hpos, int radius, const CGHeroInstance int3 VCAI::explorationNewPoint(int radius, const CGHeroInstance * h, std::vector > &tiles) { TimeCheck tc("looking for new exploration point"); - tlog0 << "Looking for an another place for exploration...\n"; + PNLOG("Looking for an another place for exploration..."); tiles.resize(radius); foreach_tile_pos([&](const int3 &pos) @@ -2320,6 +2320,8 @@ int3 whereToExplore(const CGHeroInstance *h) TSubgoal CGoal::whatToDoToAchieve() { + BNLOG("Decomposing goal of type %s", goalName(goalType)); + INDENT; switch(goalType) { case WIN: