]> git.itanic.dy.fi Git - sdl-planets/commit
merge_planets: Remove planet from linked lists before merging
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 20 Jul 2011 12:47:55 +0000 (15:47 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 20 Jul 2011 12:47:55 +0000 (15:47 +0300)
commit0f13064cd991ca571194e35f40218e33f5cfa4fd
treee08d95813fa80e892cbae09f16a82e7e836a32ab
parent87dcb56224eb827fb014cdc5129197c887cb3fcc
merge_planets: Remove planet from linked lists before merging

The planet needs to be remove from all linked lists before they are
being merged together. If merging takes place while both nodes are in
the same quad tree, the tree logic might collapse due to two nodes
sharing the same identical coordinates.

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