|
@@ -432,7 +432,7 @@ bool boundaryBetweenTwoPoints (int3 pos1, int3 pos2, CCallback * cbp) //determin
|
|
|
for (int y = yMin; y <= yMax; ++y)
|
|
|
{
|
|
|
int3 tile = int3(x, y, pos1.z); //use only on same level, ofc
|
|
|
- if (abs(pos1.dist2d(tile) - pos2.dist2d(tile)) < 1.5)
|
|
|
+ if (std::abs(pos1.dist2d(tile) - pos2.dist2d(tile)) < 1.5)
|
|
|
{
|
|
|
if (!(cbp->isVisible(tile) && cbp->getTile(tile)->blocked)) //if there's invisible or unblocked tile between, it's good
|
|
|
return false;
|
|
@@ -509,4 +509,4 @@ bool compareArtifacts(const CArtifactInstance *a1, const CArtifactInstance *a2)
|
|
|
return true;
|
|
|
else
|
|
|
return art1->price > art2->price;
|
|
|
-}
|
|
|
+}
|