# HG changeset patch # User jdg@air # Date 1437742359 -7200 # Node ID de8c45fb2ab95ff10506140fb88028c2b39da7d2 # Parent 2fd258596af0ec617f8477cf8fb7f764959a0a26 BUGFIX gas volume: do not forget deco gas with switch >= dive's bottom depth. diff -r 2fd258596af0 -r de8c45fb2ab9 src/p2_deco.c --- a/src/p2_deco.c Thu Jul 23 12:53:35 2015 +0200 +++ b/src/p2_deco.c Fri Jul 24 14:52:39 2015 +0200 @@ -1187,7 +1187,7 @@ calc_ascenttime(); char_O_deco_status = 0; // calc nullzeit next time. char_O_deco_last_stop = 0; // Surface reached (to animate menu) - return; + return; } } //---- Then update tissue -------------------------------------------- @@ -2194,7 +2194,8 @@ * bottom_usage; // In liter/minutes. //---- Ascent usage ------------------------------------------------------ - depth = lastGasStop = char_I_bottom_depth; + depth = char_I_bottom_depth; + lastGasStop = 255; // Allow deco gas at or below bottom depth for(i=0; i