소스 검색

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);
 
-			bool hasSomething = !map->isInTheMap(currentPos) || tileHasSomething(currentPos);
+			bool hasSomething = map->isInTheMap(currentPos) && tileHasSomething(currentPos);
 
 			if(ruleIsSomething(flipped.data[i]))
 			{