# HG changeset patch
# User JeanDo
# Date 1330809993 -3600
# Node ID a4586e115ded5148834624b7f7b742167cc17122
# Parent  8666b14fce24f391d628a33990613849d3283e46
Minor typo cleanup.

diff -r 8666b14fce24 -r a4586e115ded code_part1/OSTC_code_c_part2/p2_deco.c
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Sat Mar 03 22:26:33 2012 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Sat Mar 03 22:26:33 2012 +0100
@@ -545,11 +545,11 @@
         // Store the deepest point needing a deco stop as the LOW reference for GF.
         // NOTE: following stops will be validated using this LOW-HIGH gf scale,
         //       so if we want to keep coherency, we should not validate this stop
-        //       yet, but apply the search as all the following stops afterward.
+        //       yet, but apply the search to it, as for all the following stops afterward.
         if( first_stop > low_depth )
         {
             low_depth = first_stop;
-            locked_GF_step = GF_delta / low_depth;
+            locked_GF_step = GF_delta / first_stop;
         }
 
         // We have a stop candidate.
@@ -766,7 +766,6 @@
     calc_dive_interval();
 }
 
-
 //////////////////////////////////////////////////////////////////////////////
 // Find current gas in the list (if any).
 // 
@@ -1957,7 +1956,7 @@
     float_desaturation_multiplier = char_I_desaturation_multiplier * (0.01 * SURFACE_DESAT_FACTOR);
     float_saturation_multiplier   = char_I_saturation_multiplier   * 0.01;
 
-    // Make sure SURFACE_DESAT_FACTOR is applyed:
+    // Make sure SURFACE_DESAT_FACTOR is applied:
     backup_model = char_I_deco_model;
     char_I_deco_model = 0;