summaryrefslogtreecommitdiffstats
path: root/core/divelist.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-02 11:17:10 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2017-10-18 23:19:13 +0200
commit4158a4c7de3701f9e03cd226ab26b6437a47f33e (patch)
treeb289320d08d3eeef4c4fc9fdadb848876d8a3660 /core/divelist.h
parent59845c13438f1d72f500eeebed90f6929b822fa5 (diff)
downloadsubsurface-4158a4c7de3701f9e03cd226ab26b6437a47f33e.tar.gz
init_deco correctly identify previous dives and report overlapping dives
When changing the date/time of a dive in the planner the dive may end up in a totaly new position in respect to date/time of other dives in dive list table. It can be moved to the past or the future before or after other existing dives. It also could overlap with an existing dive. This change enables identification of a new "virtual" dive list position and based on this starts looking for previous dives. Then it (as before the change) does init the deco calculation with any applicable previous dive and surface interval. If some of these applicable dives overlap it returns a neg. surface time which is then used in the planner notes to prohibit display of results. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/divelist.h')
-rw-r--r--core/divelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h
index 74b616890..44f0bf0b0 100644
--- a/core/divelist.h
+++ b/core/divelist.h
@@ -15,7 +15,7 @@ extern void update_cylinder_related_info(struct dive *);
extern void mark_divelist_changed(int);
extern int unsaved_changes(void);
extern void remove_autogen_trips(void);
-extern unsigned int init_decompression(struct dive *dive);
+extern int init_decompression(struct dive *dive);
/* divelist core logic functions */
extern void process_dives(bool imported, bool prefer_imported);