Improve performance even more

This commit is contained in:
Andreas Schmitt
2021-06-15 12:22:44 +02:00
committed by Jonathan G Rennison
parent 7b7b74e21e
commit 1899b1877d
2 changed files with 32 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ void AyStar::CheckTile(AyStarNode *current, OpenListNode *parent)
if (check != nullptr) {
uint i;
/* Yes, check if this g value is lower.. */
if (new_g > check->g) return;
if (new_g >= check->g) return;
this->openlist_queue.Delete(check, 0);
/* It is lower, so change it to this item */