mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Ignore oxygen cylinders in get_dive_gas
It looks kinda strange that all CCR dives have a dive gas ..100%, so rather than showing it as the dive gas used, just ignore cylinders with usage flagged as oxygen. Signed-off-by: Anton Lundin <glance@ac2.se>
This commit is contained in:
parent
b6111714b3
commit
fea074986a
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2max_p)
|
|||
|
||||
if (!is_cylinder_used(dive, i))
|
||||
continue;
|
||||
if (cyl->cylinder_use == OXYGEN)
|
||||
continue;
|
||||
if (o2 > maxo2)
|
||||
maxo2 = o2;
|
||||
if (he > maxhe)
|
||||
|
|
Loading…
Reference in a new issue