diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-08-19 23:12:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-20 07:25:01 -0700 |
commit | 2a5073113927f5ab5e6f38a7ac6382bd44e7ad5b (patch) | |
tree | 45adbec17fb0f8db6a178ee321db59d13f0fcce6 /deco.c | |
parent | 6c0bcec3e78b6b8f9775a12f7e369d62bcf16a71 (diff) | |
download | subsurface-2a5073113927f5ab5e6f38a7ac6382bd44e7ad5b.tar.gz |
Leftovers from introduction of in_planner() helper function
I have no idea how these could have been left behind
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'deco.c')
-rw-r--r-- | deco.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,6 +21,8 @@ #include <assert.h> #include <planner.h> +extern bool in_planner(); + //! Option structure for Buehlmann decompression. struct buehlmann_config { double satmult; //! safety at inert gas accumulation as percentage of effect (more than 100). @@ -167,7 +169,7 @@ static double tissue_tolerance_calc(const struct dive *dive) double lowest_ceiling = 0.0; double tissue_lowest_ceiling[16]; - if (prefs.deco_mode != VPMB || !in_planner) { + if (prefs.deco_mode != VPMB || !in_planner()) { for (ci = 0; ci < 16; ci++) { tissue_inertgas_saturation[ci] = tissue_n2_sat[ci] + tissue_he_sat[ci]; buehlmann_inertgas_a[ci] = ((buehlmann_N2_a[ci] * tissue_n2_sat[ci]) + (buehlmann_He_a[ci] * tissue_he_sat[ci])) / tissue_inertgas_saturation[ci]; |