summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2013-07-05 23:42:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-08-05 16:59:29 +0200
commit7293885178de700558f7954725ef9d8965cdb17a (patch)
treebe2f33b3e0ebdb4fd37536183c9b869ebbf7d81b /dive.h
parentaa5365eb3fc49e6b7ffa2897b7bbd801b173b26b (diff)
downloadsubsurface-7293885178de700558f7954725ef9d8965cdb17a.tar.gz
Delte the temporary dive from the divelist after calculating deco.
This bug manifested itself as too long deco obligation when moving waypoints to later and then back to earlier times as all intermedite versions were created as dives in the divelist (and the saturation of these "previous dives" was taken into account. It is not entirely clear to me how the dive will be permanently added to the divelist once ok is pressed: One could in createDecoStops allocate struct dive from the heap rather than from the stack and return a pointer to it and which is then added to the dive list upon pressing ok. [Dirk Hohndel: add include file to make this compile] Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 1c1d49640..2c69cbff8 100644
--- a/dive.h
+++ b/dive.h
@@ -726,6 +726,7 @@ void get_gas_string(int o2, int he, char *buf, int len);
struct divedatapoint *create_dp(int time_incr, int depth, int o2, int he, int po2);
void dump_plan(struct diveplan *diveplan);
void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, char **error_string_p);
+void delete_single_dive(int idx);
struct event *get_next_event(struct event *event, char *name);