Browse Source

Improve terrain check condition

Dydzio 2 years ago
parent
commit
c40dcec7cd
1 changed files with 2 additions and 2 deletions
  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