Browse Source

Tweak condition to remove hardcoded terrain ID

Dydzio 2 years ago
parent
commit
306348c301
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() && isPassable() && id != Terrain::SUBTERRANEAN;
+	return isSurface();
 }
 
 bool TerrainType::isUndergroundCartographerCompatible() const
 {
-	return isLand() && isPassable() && id == Terrain::SUBTERRANEAN;
+	return isLand() && isPassable() && !isSurface();
 }
 
 bool TerrainType::isTransitionRequired() const