diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 23:09:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 23:09:12 -0700 |
commit | 5bc5cae6dcdb6a48bb5077d01e490bebedc624d9 (patch) | |
tree | 69323c0f826995c45558937d062e3f0a2d369527 /planner.c | |
parent | 88f39912603f9ce3d7c799b65580ee30e5ccb364 (diff) | |
download | subsurface-5bc5cae6dcdb6a48bb5077d01e490bebedc624d9.tar.gz |
Planner: only copy cylinders that were used in the template dive
This was only semi-implemented the first time around. Now we really only
copy the ones that are indeed used.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -256,7 +256,7 @@ static struct dive *create_dive_from_plan(struct diveplan *diveplan, struct dive dc = &dive->dc; dc->model = "planned dive"; /* do not translate here ! */ dp = diveplan->dp; - copy_cylinders(master_dive, dive); + copy_cylinders(master_dive, dive, false); /* reset the end pressure values and start with the gas on the first cylinder */ reset_cylinders(master_dive); |