aboutsummaryrefslogtreecommitdiff
path: root/src/survive_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/survive_data.c')
-rw-r--r--src/survive_data.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/survive_data.c b/src/survive_data.c
index 6824b0f..f87c69d 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -13,12 +13,12 @@ void handle_lightcap( SurviveObject * so, LightcapElement * le )
//if( so->codename[0] != 'H' )
+
if( le->sensor_id > SENSORS_PER_OBJECT )
{
return;
}
-
so->tsl = le->timestamp;
if( le->length < 20 ) return; ///Assuming 20 is an okay value for here.
@@ -127,10 +127,8 @@ void handle_lightcap( SurviveObject * so, LightcapElement * le )
{
int32_t delta1 = so->last_time[0] - so->recent_sync_time;
int32_t delta2 = so->last_time[1] - so->last_time[0];
-
ctx->lightproc( so, -1, acode_array[0], delta1, so->last_time[0], so->last_length[0] );
ctx->lightproc( so, -2, acode_array[1], delta2, so->last_time[1], so->last_length[1] );
-
so->recent_sync_time = so->last_time[1];
//Throw out everything if our sync pulses look like they're bad.