Merge pull request #932 from LionTurtle/master

Fix sign error in nudge code that made nudging in the negative Z direction buggy.
This commit is contained in:
ZappoMan 2013-09-13 10:54:34 -07:00
commit e6f708d035

View file

@ -1927,7 +1927,7 @@ void reorderChildrenForNudge(void* extraData) {
for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) { for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
lastToNudgeVote[POSITIVE_Z_ORDERING[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++) { for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
lastToNudgeVote[NEGATIVE_Z_ORDERING[i]]++; lastToNudgeVote[NEGATIVE_Z_ORDERING[i]]++;
} }