mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
88f3991260
commit
5bc5cae6dc
4 changed files with 12 additions and 9 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue