diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-02-03 07:31:03 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-03 07:31:03 -0800 |
commit | 08c42813e5d3af8ca702be4333daf46cc14c1d39 (patch) | |
tree | e75edfe480b20bd743887e1d868024624a2d5163 /core/dive.c | |
parent | 414d7f2632273420aea8e6cb5291a40ea2111d13 (diff) | |
download | subsurface-08c42813e5d3af8ca702be4333daf46cc14c1d39.tar.gz |
Revert "In statistics, ignore gas use of planned dives"
This reverts commit 1d8662006cbb5edae941315e30ede381c23a817b.
Mistakenly pushed to master
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.c b/core/dive.c index b305df56d..19a950482 100644 --- a/core/dive.c +++ b/core/dive.c @@ -582,7 +582,7 @@ void copy_cylinders(struct dive *s, struct dive *d, bool used_only) memset(&d->cylinder[i], 0, sizeof(cylinder_t)); } for (i = j = 0; i < MAX_CYLINDERS; i++) { - if (!used_only || is_cylinder_used(s, i, false)) { + if (!used_only || is_cylinder_used(s, i)) { d->cylinder[j].type = s->cylinder[i].type; d->cylinder[j].type.description = copy_string(s->cylinder[i].type.description); d->cylinder[j].gasmix = s->cylinder[i].gasmix; @@ -2050,10 +2050,10 @@ static void merge_cylinders(struct dive *res, struct dive *a, struct dive *b) } else { int j=0; for (i = 0; i < MAX_CYLINDERS && j < MAX_CYLINDERS; i++) { - if (is_cylinder_used(res, i, false)) + if (is_cylinder_used(res, i)) continue; - while (!is_cylinder_used(b, j, false) && j < MAX_CYLINDERS - 1) { + while (!is_cylinder_used(b, j) && j < MAX_CYLINDERS - 1) { mapping[j] = 0; ++j; } |