From aa86d47e47b049addc8e09625e47df94383530a0 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 15 Apr 2019 13:29:25 +0200 Subject: Don't show surface gas in gas use list Skip gas use calculation for the gas that was used in the surface segment added by the planner in the end. Reported-by: philippe@philmassart.net Signed-off-by: Robert C. Helling --- core/plannernotes.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/plannernotes.c b/core/plannernotes.c index 99f456393..e7a09d96d 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -451,6 +451,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d char warning[1000] = ""; char mingas[1000] = ""; cylinder_t *cyl = &dive->cylinder[gasidx]; + if (cyl->cylinder_use == NOT_USED) + continue; if (cylinder_none(cyl)) break; -- cgit v1.2.3-70-g09d2