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:
parent
2c09bfb22a
commit
306348c301
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user