From 5108f75390ee57fc4669a9110002585500176593 Mon Sep 17 00:00:00 2001 From: Mike Turvey Date: Tue, 30 May 2017 17:04:00 -0700 Subject: Mainly cleaning up warnings --- src/poser_turveytori.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src') 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"); } -- cgit v1.2.3