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:
@@ -100,7 +100,7 @@ std::vector<CGPathNode *> NodeStorage::calculateTeleportations(
|
||||
{
|
||||
auto * node = getNode(neighbour, source.node->layer);
|
||||
|
||||
if(!node->coord.valid())
|
||||
if(!node->coord.isValid())
|
||||
{
|
||||
logAi->debug("Teleportation exit is blocked " + neighbour.toString());
|
||||
continue;
|
||||
@@ -132,7 +132,7 @@ std::vector<CGPathNode *> NodeStorage::getInitialNodes()
|
||||
initialNode->moveRemains = out.hero->movementPointsRemaining();
|
||||
initialNode->setCost(0.0);
|
||||
|
||||
if(!initialNode->coord.valid())
|
||||
if(!initialNode->coord.isValid())
|
||||
{
|
||||
initialNode->coord = out.hpos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user