# HG changeset patch # User JeanDo # Date 1330809993 -3600 # Node ID 8666b14fce24f391d628a33990613849d3283e46 # Parent 19161c50654a7c65d7d5ca614bc76397e3fba9e9 Fix deepest low_depth value diff -r 19161c50654a -r 8666b14fce24 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Wed Feb 29 19:14:55 2012 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Sat Mar 03 22:26:33 2012 +0100 @@ -526,11 +526,7 @@ overlay unsigned char first_stop = 0; overlay float p; - if( depth >= low_depth ) - sim_limit( GF_low ); - else - sim_limit( GF_high - depth * locked_GF_step ); - + sim_limit( GF_low ); p = sim_lead_tissue_limit - pres_surface; if( p <= 0.0f ) goto no_deco_stop; // We can surface directly... @@ -1027,11 +1023,8 @@ // Values that should be reset just once for the full real dive. // This is used to record the lowest stop for the whole dive, // Including ACCROSS all simulated ascent. - // NOTE: Use a default of 6m (like the 10m in the DR5 code). - // Because this produces less babling stops at the - // beginning of the decompression. But putting a value too high - // have the immediat effect of using lower GF for shallow dives... - low_depth = 6; + low_depth = 0; + locked_GF_step = 0.0; // Reset gas switch history. backup_gas_used = sim_gas_last_used = 0;