Преглед изворни кода

Fix generation of roads and rivers near map edge

Ivan Savenko пре 2 година
родитељ
комит
2dc48496ef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/mapping/CDrawRoadsOperation.cpp

+ 1 - 1
lib/mapping/CDrawRoadsOperation.cpp

@@ -293,7 +293,7 @@ CDrawLinesOperation::ValidationResult CDrawLinesOperation::validateTile(const Li
 
 
 			int3 currentPos(cx, cy, pos.z);
 			int3 currentPos(cx, cy, pos.z);
 
 
-			bool hasSomething = !map->isInTheMap(currentPos) || tileHasSomething(currentPos);
+			bool hasSomething = map->isInTheMap(currentPos) && tileHasSomething(currentPos);
 
 
 			if(ruleIsSomething(flipped.data[i]))
 			if(ruleIsSomething(flipped.data[i]))
 			{
 			{