diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-17 00:09:19 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-17 00:09:19 +0000 |
commit | ee7dd4307a442148598299db1152461b6cbf8270 (patch) | |
tree | 941c607b6638cd2cde00aadf8fb9bc52cb1de9b8 /statistics.c | |
parent | 23304f69c04f13ba87f32e8574a75c08212a3608 (diff) | |
download | subsurface-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.c | 2 |
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; |