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:
@@ -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
|
||||
|
Reference in New Issue
Block a user