diff options
author | Robert C. Helling <helling@atdotde.de> | 2019-04-15 13:29:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-16 02:00:35 +1200 |
commit | aa86d47e47b049addc8e09625e47df94383530a0 (patch) | |
tree | 74bf4476ccb8ad3a6342dca0781114cfe6e7d742 | |
parent | 826cc97921df3fae69c04dd7318ee7fb49033fca (diff) | |
download | subsurface-aa86d47e47b049addc8e09625e47df94383530a0.tar.gz |
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 <helling@atdotde.de>
-rw-r--r-- | core/plannernotes.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |