aboutsummaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-08-15 13:45:42 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-08-15 13:45:42 +0200
commita3e87bf1a1901f4e4a17d7344599f361a8f75743 (patch)
treed0f4ba00b7f20c6f81e2b4e8b6fb9e6d31312e8a /planner.c
parent342479586d1f34a2b7f3d1d69037cb0d631489fa (diff)
downloadsubsurface-a3e87bf1a1901f4e4a17d7344599f361a8f75743.tar.gz
VPM-B: Fix trial_ascent() for vpm-b.
Previously, current depth was checked, instead of the depth after the move. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 9c0c95f45..3723b4056 100644
--- a/planner.c
+++ b/planner.c
@@ -884,7 +884,7 @@ bool trial_ascent(int trial_depth, int stoplevel, int avg_depth, int bottom_time
clear_to_ascend = false;
break;
}
- if (prefs.deco_mode == VPMB && (!is_vpmb_ok(depth_to_mbar(trial_depth, &displayed_dive) / 1000.0))){
+ if (prefs.deco_mode == VPMB && (!is_vpmb_ok(depth_to_mbar(trial_depth - deltad, &displayed_dive) / 1000.0))){
clear_to_ascend = false;
break;
}