aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Turvey <mturvey6@gmail.com>2017-05-25 23:01:28 -0700
committerMike Turvey <mturvey6@gmail.com>2017-05-25 23:01:28 -0700
commit4802d6c1567fd3d84b06315868f34bf63d0de315 (patch)
treee2cf95427aabcc8bae842ec64d854e6e178d3445 /src
parent82d5acc8a7536da94399353ee446d44d7a187834 (diff)
downloadlibsurvive-4802d6c1567fd3d84b06315868f34bf63d0de315.tar.gz
libsurvive-4802d6c1567fd3d84b06315868f34bf63d0de315.tar.bz2
Fixed an ugly stupid bug in Torii
Diffstat (limited to 'src')
-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.