diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-04-02 10:32:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-02 09:46:10 -0700 |
commit | cc8d6014229dbca15373f6c3d888a6404c0775f1 (patch) | |
tree | 13a9934327b877a2c4dda894c170a2f91e3e1270 /planner.c | |
parent | cd34fea1db4e3cf118bcc08358bb84df68314700 (diff) | |
download | subsurface-cc8d6014229dbca15373f6c3d888a6404c0775f1.tar.gz |
Checkbox and preference for safety stop
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -905,7 +905,7 @@ int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool s bottom_time = clock = previous_point_time = displayed_dive.dc.sample[displayed_dive.dc.samples - 1].time.seconds; gi = gaschangenr - 1; if(prefs.recreational_mode) { - bool safety_stop = true; + bool safety_stop = prefs.safetystop; // How long can we stay at the current depth and still directly ascent to the surface? while (trial_ascent(depth, 0, avg_depth, bottom_time, tissue_tolerance, &displayed_dive.cylinder[current_cylinder].gasmix, po2, diveplan->surface_pressure / 1000.0)) { |