Commit graph

8 commits

Author SHA1 Message Date
Sryder
87069a86d8 Fix the cause of the waypoint debug message spam in Canyon Rush.
Not calling the indexchanged callback here meant that if K_BHeapSortDown didn't make any changes, the item at index 0 would never call the callback despite changing position.
2020-07-08 21:36:28 +01:00
Sally Cochenour
521c4662bf void out heap after done asserting, to fix an unused variable compile error I get 2020-03-21 23:09:05 -04:00
Sryder
5cd1296505 Include license/copyright headers on new files. 2020-03-22 00:16:32 +00:00
Sryder
3d3b8b6bc6 Replace many cases of if else if statements with I_Asserts.
This is done specifically on static functions that aren't used as callbacks.
This is done to keep the code cleaner, and the I_Asserts get compiled out in Release builds.
Logic is left in the "public" functions to avoid crashes as a result of the modules.
2020-03-21 19:00:00 +00:00
Sryder
773ddd98a8 Add function for freeing binary heap. 2019-06-09 19:36:36 +01:00
Sryder
b1fa5f6d34 Correct compiler issues. 2019-06-08 22:59:13 +01:00
Sryder
3a25bb38fe Add callback to heapitem to alert data when the heap index is changed.
Add K_BHeapContains to give an easy way to find if the heap contains data.
2019-06-08 22:55:02 +01:00
Sryder
31d76596c0 Binary Heap Implementation
Currently untested.
2019-06-08 21:46:23 +01:00