]> git.itanic.dy.fi Git - sdl-planets/commit
planet.c: Optimize moving of planets within thetree
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 11 Apr 2010 09:13:55 +0000 (12:13 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 11 Apr 2010 09:18:38 +0000 (12:18 +0300)
commitadba740739f3a5b9ec3e97149714111532d6964e
tree7fcf4a6ce4dda3b0f33b37d0944d1c827f93fbd1
parentaec6ec72fb94aa345ca439b630005c984e207c29
planet.c: Optimize moving of planets within thetree

If there is no changes in the tree topology when a planet is moved,
there is no need to do any tree operations. This will decrease tree
maintenance overhead especially with large trees.

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