diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-20 15:52:23 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-20 16:09:07 -0600 |
commit | 8d269a56805d4abd3f912b789cbd9b3b3f8925c0 (patch) | |
tree | 5b666bc90649def4c05338b96dd66b1beefba724 /src/survive_process.c | |
parent | 8ec5d7facc76e05859444335adbdbfd2bbbad852 (diff) | |
download | libsurvive-8d269a56805d4abd3f912b789cbd9b3b3f8925c0.tar.gz libsurvive-8d269a56805d4abd3f912b789cbd9b3b3f8925c0.tar.bz2 |
Added functionality to standardize where found lighthouses go
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index f315884..a49b632 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -115,9 +115,10 @@ void survive_default_raw_pose_process(SurviveObject *so, uint8_t lighthouse, Sur so->FromLHPose[lighthouse] = *pose; } -void survive_default_lighthouse_pose_process(SurviveContext *ctx, uint8_t lighthouse, SurvivePose *pose) { - if (pose) { - ctx->bsd[lighthouse].Pose = *pose; +void survive_default_lighthouse_pose_process(SurviveContext *ctx, uint8_t lighthouse, SurvivePose *lighthouse_pose, + SurvivePose *object_pose) { + if (lighthouse_pose) { + ctx->bsd[lighthouse].Pose = *lighthouse_pose; ctx->bsd[lighthouse].PositionSet = 1; } else { ctx->bsd[lighthouse].PositionSet = 0; |