diff options
author | Mike Turvey <mturvey6@gmail.com> | 2017-05-30 17:04:00 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2017-05-30 17:04:00 -0700 |
commit | 5108f75390ee57fc4669a9110002585500176593 (patch) | |
tree | 3f4931c946d944af8aa818f8e97034610ec38296 /src/poser_turveytori.c | |
parent | c9b8dccdf41d89a7c696337357f115aa9f1066ca (diff) | |
download | libsurvive-5108f75390ee57fc4669a9110002585500176593.tar.gz libsurvive-5108f75390ee57fc4669a9110002585500176593.tar.bz2 |
Mainly cleaning up warnings
Diffstat (limited to 'src/poser_turveytori.c')
-rw-r--r-- | src/poser_turveytori.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c index c7ef901..481a499 100644 --- a/src/poser_turveytori.c +++ b/src/poser_turveytori.c @@ -1467,7 +1467,26 @@ static void QuickPose(SurviveObject *so, int lh) { FLT pos[3], quat[4]; - SolveForLighthouse(pos, quat, to, so, 0, lh, 0); + // TODO: This countdown stuff is a total hack! + // it basically ignores all the logic to find the most reliable data points + // and just grabs a sample and uses it. + + static int countdown = 5; + + if (countdown > 0 && so->ctx->objs[0] == so) + { + SolveForLighthouse(pos, quat, to, so, 0, lh, 1); + countdown--; + } + else + { + SolveForLighthouse(pos, quat, to, so, 0, lh, 0); + } + + + + + //SolveForLighthouse(pos, quat, to, so, 0, lh, 0); printf("!\n"); } |