summaryrefslogtreecommitdiffstats
path: root/statistics.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:19 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:19 +0000
commitee7dd4307a442148598299db1152461b6cbf8270 (patch)
tree941c607b6638cd2cde00aadf8fb9bc52cb1de9b8 /statistics.c
parent23304f69c04f13ba87f32e8574a75c08212a3608 (diff)
downloadsubsurface-ee7dd4307a442148598299db1152461b6cbf8270.tar.gz
In a CCR dive the diluent and oxygen cylinders are both used
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r--statistics.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/statistics.c b/statistics.c
index 9eb029115..96d6a65f2 100644
--- a/statistics.c
+++ b/statistics.c
@@ -308,6 +308,8 @@ bool is_cylinder_used(struct dive *dive, int idx)
return true;
event = get_next_event(event->next, "gaschange");
}
+ if (dc->dctype == CCR && (idx == dive->diluent_cylinder_index || idx == dive->oxygen_cylinder_index))
+ return true;
}
if (idx == 0 && !firstGasExplicit)
return true;