1
0
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:
Ivan Savenko
2025-02-28 19:56:43 +00:00
parent 0ead6a50b5
commit 9f713a0914
26 changed files with 42 additions and 42 deletions

View File

@@ -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);
}