mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Rename int3::valid to isValid for consistency
This commit is contained in:
@@ -34,7 +34,7 @@ void ObstacleProxy::collectPossibleObstacles(TerrainId terrain)
|
||||
{
|
||||
for(const auto & temp : handler->getTemplates())
|
||||
{
|
||||
if(temp->canBePlacedAt(terrain) && temp->getBlockMapOffset().valid())
|
||||
if(temp->canBePlacedAt(terrain) && temp->getBlockMapOffset().isValid())
|
||||
obstaclesBySize[temp->getBlockedOffsets().size()].push_back(temp);
|
||||
}
|
||||
}
|
||||
@@ -193,7 +193,7 @@ bool ObstacleProxy::prepareBiome(const ObstacleSetFilter & filter, vstd::RNG & r
|
||||
{
|
||||
for (const auto & temp : os->getObstacles())
|
||||
{
|
||||
if(temp->getBlockMapOffset().valid())
|
||||
if(temp->getBlockMapOffset().isValid())
|
||||
{
|
||||
obstaclesBySize[temp->getBlockedOffsets().size()].push_back(temp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user