SpriteLink/NIPAP — pull request #417 by plajjan (2013-09-13 14:42:14+00:00)
Title: Simplify the logic around parents/children_depth

This makes the code a bit more compact and easier to read plus that we
explicitly check for -1 instead of allowing any negative value.