diff code_part1/OSTC_code_c_part2/p2_deco.c @ 216:c7e32ff65636

BUGFIX typo when last stop is just below 3m.
author JeanDo
date Thu, 24 Feb 2011 23:22:14 +0100
parents 275befc5f39d
children ce6f16711567
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Wed Feb 23 19:11:29 2011 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Thu Feb 24 23:22:14 2011 +0100
@@ -635,10 +635,10 @@
 
                 if( first_stop <= char_I_depth_last_deco )  // new in v104
                     next_stop = 0;
+                else if( first_stop == 6 )
+                    next_stop = char_I_depth_last_deco;
                 else
                     next_stop = first_stop - 3;             // Index of next (upper) stop.
-                if( first_stop == 3 )
-                    first_stop = char_I_depth_last_deco;
 
         	    pres_stop =  next_stop * 0.09995            // Meters to bar
         	              + pres_surface;