mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
826cc97921
commit
aa86d47e47
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue