aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-13 01:44:53 -0500
committercnlohr <lohr85@gmail.com>2017-02-13 01:44:53 -0500
commitee433e4a076f77fa28e4d55d6703d6ed7c599251 (patch)
tree410ace763f3f513081338d6803c2a755582b3202 /src
parentff7167fb8afff6633db422290864e5da302d9afb (diff)
downloadlibsurvive-ee433e4a076f77fa28e4d55d6703d6ed7c599251.tar.gz
libsurvive-ee433e4a076f77fa28e4d55d6703d6ed7c599251.tar.bz2
Closes #15 Closes #4 These are now rock solid.
Prepare the way for the OOTX Data. Gonna hav eto get @axlecrusher on it.
Diffstat (limited to 'src')
-rw-r--r--src/survive_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/survive_data.c b/src/survive_data.c
index afda235..b79f96e 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -135,8 +135,10 @@ static void handle_lightcap( struct SurviveObject * so, struct LightcapElement *
int32_t delta1 = so->last_time[0] - so->recent_sync_time;
int32_t delta2 = so->last_time[1] - so->last_time[0];
+ //XXX Axlecrusher -> Add your code here!!!
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.