mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Replace cylinder_is_used with is_cylinder_used
is_cylinder_used uses get_cylinder_index as underlaying function that does the right thing with with respect on how to find the closest matching cylinder, and handles both types of gaschange events correctly. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
810880ea1d
commit
950638ec1c
6 changed files with 7 additions and 32 deletions
|
@ -116,7 +116,7 @@ void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p)
|
|||
int o2 = get_o2(&cyl->gasmix);
|
||||
int he = get_he(&cyl->gasmix);
|
||||
|
||||
if (!cylinder_is_used(dive, cyl))
|
||||
if (!is_cylinder_used(dive, i))
|
||||
continue;
|
||||
if (cylinder_none(cyl))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue