mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Bailout segment is part of bottom time
The clock is only valid in ascent. In each cycle of the 'critial volume algorithm' it re-initialized to the bottom time at the beginning of deco. So the time spent on bailout should be added to this bottom time. Thanks to Coverty for spotting this. Coverity-scan: CID-362079 Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
c33dd3808e
commit
ee79080280
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i
|
|||
get_cylinder(dive, current_cylinder)->gasmix,
|
||||
bailoutsegment, po2, divemode, prefs.bottomsac);
|
||||
plan_add_segment(diveplan, bailoutsegment, depth, current_cylinder, po2, false, divemode);
|
||||
clock += bailoutsegment;
|
||||
bottom_time += bailoutsegment;
|
||||
last_segment_min_switch = true;
|
||||
}
|
||||
previous_deco_time = 100000000;
|
||||
|
|
Loading…
Add table
Reference in a new issue