소스 검색

Improve terrain check condition

Dydzio 3 년 전
부모
커밋
c40dcec7cd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/Terrain.cpp

+ 2 - 2
lib/Terrain.cpp

@@ -442,12 +442,12 @@ bool TerrainType::isUnderground() const
 
 bool TerrainType::isSurfaceCartographerCompatible() const
 {
-	return isLand() && id != Terrain::SUBTERRANEAN && id != Terrain::ROCK;
+	return isLand() && isPassable() && id != Terrain::SUBTERRANEAN;
 }
 
 bool TerrainType::isUndergroundCartographerCompatible() const
 {
-	return isLand() && id == Terrain::SUBTERRANEAN;
+	return isLand() && isPassable() && id == Terrain::SUBTERRANEAN;
 }
 
 bool TerrainType::isTransitionRequired() const