Menu

#477 Priority queue converted to heap based priority queue

closed-rejected
nobody
BZFlag (297)
5
2011-07-30
2009-03-28
No

This patch converts the priority queue in src/bzflag/RegionPriorityQueue.cxx and src/bzflag/RegionPriorityQueue.h into a heap based priority queue. This change was requested through a FIXME in the former. The RegionPriorityQueue class is being used in src/game/RobotPlayer.cxx and hence, the change in the function names have been reflected there as well.

I've also added some typo corrections where 'received' was spelt 'recieved' in some code relating to ServerPing and ServerLink.

Discussion

  • Lalith Suresh

    Lalith Suresh - 2009-03-28

    Created using svn diff

     
  • Daniel Remenak

    Daniel Remenak - 2009-04-07

    Was there a particular reason to write your own heap rather than using <algorithm>'s make_heap/push_heap/pop_heap?

     
  • Jeff Myers

    Jeff Myers - 2011-07-30
    • status: open --> closed-rejected
     

Log in to post a comment.