diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-26 16:47:11 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-26 16:48:19 -0600 |
commit | a2eef0e9d90a196f86dece20c6346c55af3bdbc0 (patch) | |
tree | d04932c843859e924956e132fc71d75064e961d8 /src/survive_process.c | |
parent | f73076dd1703601e5e14ab740cd26d29e0b9593d (diff) | |
download | libsurvive-a2eef0e9d90a196f86dece20c6346c55af3bdbc0.tar.gz libsurvive-a2eef0e9d90a196f86dece20c6346c55af3bdbc0.tar.bz2 |
Made SBA and EPNP follow availableLighthouses
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index 6136148..ad7ce97 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -80,7 +80,9 @@ void survive_default_angle_process( SurviveObject * so, int sensor_id, int acode .lh = lh, }; - SurviveSensorActivations_add(&so->activations, &l); + // Simulate the use of only one lighthouse in playback mode. + if (lh < ctx->activeLighthouses) + SurviveSensorActivations_add(&so->activations, &l); survive_recording_angle_process(so, sensor_id, acode, timecode, length, angle, lh); |