Fix sign error in nudge code that made nudging in the negative Z

direction buggy.
This commit is contained in:
LionTurtle 2013-09-13 10:50:29 -07:00
parent 3441199f0b
commit 6f8ab7a6c6

View file

@ -1927,7 +1927,7 @@ void reorderChildrenForNudge(void* extraData) {
for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
lastToNudgeVote[POSITIVE_Z_ORDERING[i]]++;
}
} else if (nudgeVec.z > 0) {
} else if (nudgeVec.z < 0) {
for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
lastToNudgeVote[NEGATIVE_Z_ORDERING[i]]++;
}