(svn r20683) -Codechange: Make BinaryHeap_Delete() a method.

This commit is contained in:
alberth
2010-08-29 13:38:06 +00:00
parent 4e9c7f489a
commit e03d069f3f
3 changed files with 23 additions and 25 deletions

View File

@@ -127,7 +127,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod
uint i;
/* Yes, check if this g value is lower.. */
if (new_g > check->g) return AYSTAR_DONE;
aystar->OpenListQueue.del(&aystar->OpenListQueue, check, 0);
aystar->OpenListQueue.Delete(check, 0);
/* It is lower, so change it to this item */
check->g = new_g;
check->path.parent = closedlist_parent;