diff options
author | Robert C. Helling <helling@atdotde.de> | 2018-08-08 16:09:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-09 08:46:57 -0700 |
commit | b9fcc9543dac4723c84c03a3d4e9bdbd176483b1 (patch) | |
tree | 46fd06987d5ac7384fcea1439f05f3d5b3587f13 /core/planner.c | |
parent | 607012cccb5dc3533d1ec795ce63fffbf7028336 (diff) | |
download | subsurface-b9fcc9543dac4723c84c03a3d4e9bdbd176483b1.tar.gz |
Allow zero length segments in planner
Those are needed to indicate bailout or set point switches
at the beginning of the ascend.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/planner.c')
-rw-r--r-- | core/planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c index 3821890e3..eefa94143 100644 --- a/core/planner.c +++ b/core/planner.c @@ -410,7 +410,7 @@ void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp) lastdp = &(*lastdp)->next; } *lastdp = dp; - if (ldp && dp->time != 0) + if (ldp) dp->time += lasttime; } |