mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make sure surface air is not considered a deco gas
it creapt in through the gaschange events. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
67a1981fbd
commit
30746e5d3f
2 changed files with 2 additions and 0 deletions
|
@ -1085,6 +1085,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i
|
||||||
// Switch to an empty air cylinder for breathing air at the surface
|
// Switch to an empty air cylinder for breathing air at the surface
|
||||||
// If no empty cylinder is found, keep using last deco gas
|
// If no empty cylinder is found, keep using last deco gas
|
||||||
current_cylinder = i;
|
current_cylinder = i;
|
||||||
|
dive->cylinder[i].cylinder_use = NOT_USED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
plan_add_segment(diveplan, prefs.surface_segment, 0, current_cylinder, 0, false, OC);
|
plan_add_segment(diveplan, prefs.surface_segment, 0, current_cylinder, 0, false, OC);
|
||||||
|
|
|
@ -442,6 +442,7 @@ void CylindersModel::add()
|
||||||
fill_default_cylinder(&displayed_dive.cylinder[row]);
|
fill_default_cylinder(&displayed_dive.cylinder[row]);
|
||||||
displayed_dive.cylinder[row].start = displayed_dive.cylinder[row].type.workingpressure;
|
displayed_dive.cylinder[row].start = displayed_dive.cylinder[row].type.workingpressure;
|
||||||
displayed_dive.cylinder[row].manually_added = true;
|
displayed_dive.cylinder[row].manually_added = true;
|
||||||
|
displayed_dive.cylinder[row].cylinder_use = OC_GAS;
|
||||||
beginInsertRows(QModelIndex(), row, row);
|
beginInsertRows(QModelIndex(), row, row);
|
||||||
rows++;
|
rows++;
|
||||||
changed = true;
|
changed = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue