]> git.itanic.dy.fi Git - sdl-planets/commit
planet.c: merge_planet: Keep quadtree spatially sorted
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 24 Dec 2010 21:11:08 +0000 (23:11 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 24 Dec 2010 21:11:08 +0000 (23:11 +0200)
commitf403584b331fc7deb8b67787fd00b0f7443f6fca
tree9057e43c09965500d6f862e6745b2fa35e63d54b
parent3e3fbf3393c6b4797179fbcd8ba677c903597521
planet.c: merge_planet: Keep quadtree spatially sorted

If we move planet in the quadtree, we must call quadtree_move() in
order to keep the tree sorted. As the tree ordering might change, the
merge planet must also return the possibly new parent node of the
tree.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
planet.c