aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Turvey <mwturvey@users.noreply.github.com>2017-05-25 23:02:34 -0700
committerGitHub <noreply@github.com>2017-05-25 23:02:34 -0700
commitd6d0cf051f54173e3f1378de148019474dc514b1 (patch)
treee2cf95427aabcc8bae842ec64d854e6e178d3445
parent82d5acc8a7536da94399353ee446d44d7a187834 (diff)
parent4802d6c1567fd3d84b06315868f34bf63d0de315 (diff)
downloadlibsurvive-d6d0cf051f54173e3f1378de148019474dc514b1.tar.gz
libsurvive-d6d0cf051f54173e3f1378de148019474dc514b1.tar.bz2
Merge pull request #74 from mwturvey/ToriFixes
Fixed an ugly stupid bug in Torii
-rw-r--r--src/poser_turveytori.c7
1 files changed, 2 insertions, 5 deletions
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.