mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Ignore not used cylinders in get_dive_gas
Signed-off-by: Anton Lundin <glance@ac2.se>
This commit is contained in:
parent
fea074986a
commit
8f4b6cfcb9
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2max_p)
|
|||
continue;
|
||||
if (cyl->cylinder_use == OXYGEN)
|
||||
continue;
|
||||
if (cyl->cylinder_use == NOT_USED)
|
||||
continue;
|
||||
if (o2 > maxo2)
|
||||
maxo2 = o2;
|
||||
if (he > maxhe)
|
||||
|
|
Loading…
Reference in a new issue