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:
Robert C. Helling 2019-04-15 13:29:25 +02:00 committed by Dirk Hohndel
parent 826cc97921
commit aa86d47e47

View file

@ -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;