1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Improve terrain check condition

This commit is contained in:
Dydzio
2022-12-30 15:46:10 +01:00
parent 1967416eb2
commit c40dcec7cd

View File

@@ -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