summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2015-07-26 13:34:42 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-26 09:14:05 -0700
commit036e992d14420c3db75d050b39d0d113b35b9aec (patch)
treec45b0b3d48a121955fe1ccfcd584cc3b6b1b4aea /planner.c
parent3d5232a622c50818029b950afb0f63f2beead6ee (diff)
downloadsubsurface-036e992d14420c3db75d050b39d0d113b35b9aec.tar.gz
Planner: Change 3m stop to zero if last stop is 6m
When the last stop at 6m/20ft option is selected, replace the 3m/10ft stop with zero depth, rather than doubling up on the 6m/20ft stop. This removes the need to differentiate between 6m (=6000mm) and 20ft (=6096mm) and saves calling a helper function. It does not alter the calculated profile at all. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 216d79138..550d46362 100644
--- a/planner.c
+++ b/planner.c
@@ -912,7 +912,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
}
if (prefs.last_stop)
- decostoplevels[1] = M_OR_FT(6,20);
+ decostoplevels[1] = 0;
/* Let's start at the last 'sample', i.e. the last manually entered waypoint. */
sample = &displayed_dive.dc.sample[displayed_dive.dc.samples - 1];