diff options
| author | 2015-08-15 13:45:42 +0200 | |
|---|---|---|
| committer | 2015-08-15 13:45:42 +0200 | |
| commit | a3e87bf1a1901f4e4a17d7344599f361a8f75743 (patch) | |
| tree | d0f4ba00b7f20c6f81e2b4e8b6fb9e6d31312e8a | |
| parent | 342479586d1f34a2b7f3d1d69037cb0d631489fa (diff) | |
| download | subsurface-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>
| -rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |