summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:07:58 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:07:58 +0200
commit500fbe499411bfa96192626c8a6213916190aaae (patch)
tree2d10ae563e3f39173a622aa63054512175a7050b /planner.c
parent2435d79c0e6e4e30ace3b23765005c90181ddae5 (diff)
downloadsubsurface-500fbe499411bfa96192626c8a6213916190aaae.tar.gz
VPM-B: add deco choice to the ui.
Removed recreational mode from ui and pref and replaced it with new deco_mode enum. Added radio button ui selection. Set default deco_mode to Buehlmann algorithm. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 35158fe12..d376acc7c 100644
--- a/planner.c
+++ b/planner.c
@@ -955,7 +955,8 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
/* Keep time during the ascend */
bottom_time = clock = previous_point_time = displayed_dive.dc.sample[displayed_dive.dc.samples - 1].time.seconds;
gi = gaschangenr - 1;
- if(prefs.recreational_mode) {
+
+ if(prefs.deco_mode == RECREATIONAL) {
bool safety_stop = prefs.safetystop && max_depth >= 10000;
track_ascent_gas(depth, &displayed_dive.cylinder[current_cylinder], avg_depth, bottom_time, safety_stop);
// How long can we stay at the current depth and still directly ascent to the surface?