Pārlūkot izejas kodu

Improve terrain check condition

Dydzio 2 gadi atpakaļ
vecāks
revīzija
c40dcec7cd
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      lib/Terrain.cpp

+ 2 - 2
lib/Terrain.cpp

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