diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-08-18 06:40:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-18 06:40:35 -0700 |
commit | f2b883865c78b2f9c28a93d50de97077b6b6d51c (patch) | |
tree | d2fdad15f9dfb11c95d990e7abd597692ed1cb2e | |
parent | 39794d34787a95c06eb4036e233289390c3a751f (diff) | |
download | subsurface-f2b883865c78b2f9c28a93d50de97077b6b6d51c.tar.gz |
Revert "Pref. to ascent to next stop only when stop is below ceiling"
This reverts commit a6ed36fb7368254d694a4f397d6d033326c37ef2.
-rw-r--r-- | planner.c | 5 | ||||
-rw-r--r-- | pref.h | 1 | ||||
-rw-r--r-- | subsurfacestartup.c | 1 |
3 files changed, 0 insertions, 7 deletions
@@ -879,11 +879,6 @@ bool trial_ascent(int trial_depth, int stoplevel, int avg_depth, int bottom_time bool clear_to_ascend = true; char *trial_cache = NULL; - // Don't do a trail ascent but check if the ceiling is above the next stoplevel. - // This does not sound like a relevant question but it seems the original VPM-B implementation does that. - if (prefs.check_ceiling_before_ascent) - return (deco_allowed_depth(tissue_tolerance, surface_pressure, &displayed_dive, 1) <= stoplevel); - cache_deco_state(tissue_tolerance, &trial_cache); while (trial_depth > stoplevel) { int deltad = ascent_velocity(trial_depth, avg_depth, bottom_time) * TIMESTEP; @@ -97,7 +97,6 @@ struct preferences { bool display_transitions; bool safetystop; bool switch_at_req_stop; - bool check_ceiling_before_ascent; int reserve_gas; int min_switch_duration; // seconds int bottomsac; diff --git a/subsurfacestartup.c b/subsurfacestartup.c index ba0969a10..18d00d374 100644 --- a/subsurfacestartup.c +++ b/subsurfacestartup.c @@ -48,7 +48,6 @@ struct preferences default_prefs = { .doo2breaks = false, .drop_stone_mode = false, .switch_at_req_stop = false, - .check_ceiling_before_ascent = false, .min_switch_duration = 60, .last_stop = false, .verbatim_plan = false, |