From 2e20dce71f9b3e74691175803fb09c48b3ed635d Mon Sep 17 00:00:00 2001 From: DJWarmonger Date: Wed, 9 Jan 2019 19:25:51 +0100 Subject: [PATCH] Fixed random hack that broke VCAI in recent commit. --- AI/VCAI/FuzzyEngines.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AI/VCAI/FuzzyEngines.cpp b/AI/VCAI/FuzzyEngines.cpp index 3529e6590..4aaa7215c 100644 --- a/AI/VCAI/FuzzyEngines.cpp +++ b/AI/VCAI/FuzzyEngines.cpp @@ -417,9 +417,6 @@ VisitTileEngine::VisitTileEngine() //so far no VisitTile-specific variables that float VisitTileEngine::evaluate(Goals::VisitTile & goal) { - // for now any visit tile is usually much more in priority then visit obj so lets reduce it - const int scale = 2; - //we assume that hero is already set and we want to choose most suitable one for the mission if(!goal.hero) return 0; @@ -432,7 +429,7 @@ float VisitTileEngine::evaluate(Goals::VisitTile & goal) { engine.process(); - goal.priority = value->getValue() / scale; + goal.priority = value->getValue(); } catch(fl::Exception & fe) {