mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +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
|
bool TerrainType::isSurfaceCartographerCompatible() const
|
||||||
{
|
{
|
||||||
return isLand() && isPassable() && id != Terrain::SUBTERRANEAN;
|
return isSurface();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TerrainType::isUndergroundCartographerCompatible() const
|
bool TerrainType::isUndergroundCartographerCompatible() const
|
||||||
{
|
{
|
||||||
return isLand() && isPassable() && id == Terrain::SUBTERRANEAN;
|
return isLand() && isPassable() && !isSurface();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TerrainType::isTransitionRequired() const
|
bool TerrainType::isTransitionRequired() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user