diff options
author | Robert Helling <helling@atdotde.de> | 2013-06-27 10:56:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-27 19:51:04 +0800 |
commit | 8eb2dc3d65f2364379e82deac8f91d3a8f380015 (patch) | |
tree | cdcdaefe63dd257931cf64ac75d642481ad55f07 /planner.c | |
parent | 1ec8bc5de0518f9859fe7c44a55b3bdd14dd8b7e (diff) | |
download | subsurface-8eb2dc3d65f2364379e82deac8f91d3a8f380015.tar.gz |
Removes circle in plan
Remove circle in plan by starting the first line at the first point
rather than the last.
In addition marks all entered points as entered and not just the first and
sets line color accordingly.
Makes plan_add_segment return the added data point.
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 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -391,10 +391,11 @@ void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp) dp->time += lasttime; } -void plan_add_segment(struct diveplan *diveplan, int duration, int depth, int o2, int he, int po2) +struct divedatapoint * plan_add_segment(struct diveplan *diveplan, int duration, int depth, int o2, int he, int po2) { struct divedatapoint *dp = create_dp(duration, depth, o2, he, po2); add_to_end_of_diveplan(diveplan, dp); + return(dp); } struct gaschanges { |