1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fixed random hack that broke VCAI in recent commit.

This commit is contained in:
DJWarmonger
2019-01-09 19:25:51 +01:00
parent f0492ffa53
commit 2e20dce71f

View File

@@ -417,9 +417,6 @@ VisitTileEngine::VisitTileEngine() //so far no VisitTile-specific variables that
float VisitTileEngine::evaluate(Goals::VisitTile & goal) 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 //we assume that hero is already set and we want to choose most suitable one for the mission
if(!goal.hero) if(!goal.hero)
return 0; return 0;
@@ -432,7 +429,7 @@ float VisitTileEngine::evaluate(Goals::VisitTile & goal)
{ {
engine.process(); engine.process();
goal.priority = value->getValue() / scale; goal.priority = value->getValue();
} }
catch(fl::Exception & fe) catch(fl::Exception & fe)
{ {