Mercurial > public > hwos_code
diff src/p2_deco.c @ 126:9e856337b225
fix depth<0m display, ceiling
author | heinrichsweikamp |
---|---|
date | Mon, 30 Jun 2014 10:58:02 +0200 |
parents | d076e9c02438 |
children | 939f1e83c4c2 |
line wrap: on
line diff
--- a/src/p2_deco.c Sun Jun 29 14:21:23 2014 +0200 +++ b/src/p2_deco.c Mon Jun 30 10:58:02 2014 +0200 @@ -943,12 +943,6 @@ calc_hauptroutine_update_tissues(); calc_gradient_factor(); - // Fill int_O_ceiling if ceiling is below the surface - if ((calc_lead_tissue_limit-pres_surface)>0) - int_O_ceiling = (short)((calc_lead_tissue_limit-pres_surface)*1000); - else - int_O_ceiling = 0; - // toggle between calculation for nullzeit (bottom time), // deco stops // and more deco stops (continue) @@ -1139,7 +1133,12 @@ // Calc limit for surface, ie. GF_high. calc_limit(); - int_O_gtissue_limit = (short)(calc_lead_tissue_limit * 1000); + // Fill int_O_ceiling if ceiling is below the surface + if ((calc_lead_tissue_limit-pres_surface)>0) + int_O_ceiling = (short)((calc_lead_tissue_limit-pres_surface)*1000); + else + int_O_ceiling = 0; + int_O_gtissue_press = (short)((pres_tissue_N2[char_O_gtissue_no] + pres_tissue_He[char_O_gtissue_no]) * 1000); }