瀏覽代碼

Improve terrain check condition

Dydzio 2 年之前
父節點
當前提交
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