From c1e521a5445f48fab7e5b49176bca77dd3165422 Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Sat, 15 May 2021 21:01:44 +0300 Subject: [PATCH] Nullkiller - rough stabilisation --- AI/Nullkiller/Pathfinding/AINodeStorage.cpp | 2 +- .../Pathfinding/Rules/AIMovementAfterDestinationRule.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp index 440cf90e6..63bd8ba27 100644 --- a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp +++ b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp @@ -411,7 +411,7 @@ bool AINodeStorage::hasBetterChain(const PathNodeInfo & source, CDestinationNode "Block ineficient move %s:->%s, mask=%i, mp diff: %i", source.coord.toString(), destination.coord.toString(), - destinationNode->chainMask, + destinationNode->actor->chainMask, node.moveRemains - destinationNode->moveRemains); #endif return true; diff --git a/AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.cpp b/AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.cpp index 45ec27230..9abf64be6 100644 --- a/AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.cpp +++ b/AI/Nullkiller/Pathfinding/Rules/AIMovementAfterDestinationRule.cpp @@ -109,7 +109,7 @@ namespace AIPathfinding return; } - AIPathNode * battleNode = battleNodeOptional.get(); + AIPathNode * battleNode = battleNodeOptional.get(); if(battleNode->locked) {