aboutsummaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-03-25 22:40:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-29 06:51:12 -0700
commit178eaa9a67f73195aac0ad195a428e899973a2df (patch)
tree91f20a2882961184513fea59866aaa34c08e823d /core/planner.c
parent5e494ce76106fe16f614e163c2bc6b8bf6903c86 (diff)
downloadsubsurface-178eaa9a67f73195aac0ad195a428e899973a2df.tar.gz
Add UI element for final surface segment in planner
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c
index 0177b9691..ff483a0ac 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -1087,7 +1087,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i
current_cylinder = i;
break;
}
- plan_add_segment(diveplan, 600, 0, current_cylinder, 0, false, OC);
+ plan_add_segment(diveplan, prefs.surface_segment, 0, current_cylinder, 0, false, OC);
create_dive_from_plan(diveplan, dive, is_planner);
add_plan_to_notes(diveplan, dive, show_disclaimer, error);
fixup_dc_duration(&dive->dc);