Skip to content

Commit

Permalink
Merge pull request #1 from glacialcascade/main
Browse files Browse the repository at this point in the history
Heapify up when deleting node (possibly needed if the last element is larger)
  • Loading branch information
edemaine authored Oct 3, 2024
2 parents fadf4e5 + 21ad038 commit 35e1fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.civet
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ class SpriteTree
n.animMove n.x! - direction * xSpace / 2, n.y!
await @draw true
await @animMaxHeapifyDown node
await @animMaxHeapifyUp node
@draw()

animMaxHeapDelete(key: number): Promise<void>
Expand Down

0 comments on commit 35e1fef

Please sign in to comment.