Improve performance even more
This commit is contained in:

committed by
Jonathan G Rennison

parent
7b7b74e21e
commit
1899b1877d
@@ -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 */
|
||||
|
Reference in New Issue
Block a user