summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-01 13:22:08 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-01 13:22:08 -0800
commit852c9f4e3bfdff9731cffd407a187ed92e919d9e (patch)
tree5d6a7eb7821f77d293cdb2780b6335869449fba4 /deco.c
parentf2ff2022e6f7916253bd2c106092b6254f3e6b6e (diff)
parentad660da6d10f847aec1b30b333a82720efd7e6a9 (diff)
downloadsubsurface-852c9f4e3bfdff9731cffd407a187ed92e919d9e.tar.gz
Merge branch 'for_dirk' of https://github.com/atdotde/subsurface
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deco.c b/deco.c
index 86acc0351..506d8b58f 100644
--- a/deco.c
+++ b/deco.c
@@ -244,7 +244,7 @@ double tissue_tolerance_calc(const struct dive *dive, double pressure)
double lowest_ceiling = 0.0;
double tissue_lowest_ceiling[16];
- if (prefs.deco_mode != VPMB || !in_planner()) {
+ if (prefs.deco_mode != VPMB) {
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];
@@ -509,7 +509,7 @@ void add_segment(double pressure, const struct gasmix *gasmix, int period_in_sec
tissue_n2_sat[ci] += n2_satmult * pn2_oversat * n2_f;
tissue_he_sat[ci] += he_satmult * phe_oversat * he_f;
}
- if(prefs.deco_mode == VPMB && in_planner())
+ if(prefs.deco_mode == VPMB)
calc_crushing_pressure(pressure);
return;
}