1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Tweak condition to remove hardcoded terrain ID

This commit is contained in:
Dydzio 2022-12-30 16:04:19 +01:00
parent 2c09bfb22a
commit 306348c301

View File

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