From 4802d6c1567fd3d84b06315868f34bf63d0de315 Mon Sep 17 00:00:00 2001 From: Mike Turvey Date: Thu, 25 May 2017 23:01:28 -0700 Subject: Fixed an ugly stupid bug in Torii --- src/poser_turveytori.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c index b4f685c..c89f62a 100644 --- a/src/poser_turveytori.c +++ b/src/poser_turveytori.c @@ -399,7 +399,6 @@ FLT getPointFitness(Point pointIn, PointsAndAngle *pna, size_t pnaCount, int deu FLT resultSum = 0; FLT *fitnesses = alloca(sizeof(FLT) * pnaCount); - int i = 0, j = 0; FLT worstFitness = 0; @@ -409,8 +408,6 @@ FLT getPointFitness(Point pointIn, PointsAndAngle *pna, size_t pnaCount, int deu if (worstFitness < fitness) { - i = pna[i].ai; - j = pna[i].bi; worstFitness = fitness; } @@ -1537,7 +1534,7 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData ) counter++; // let's just do this occasionally for now... - if (counter % 4 == 0) + if (counter % 12 == 0) QuickPose(so, 0); } if (1 == l->lh && axis) // only once per full cycle... @@ -1547,7 +1544,7 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData ) counter++; // let's just do this occasionally for now... - if (counter % 4 == 0) + if (counter % 12 == 0) QuickPose(so, 1); } // axis changed, time to increment the circular buffer index. -- cgit v1.2.3