mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: use planner's dive in interpolate_transition()
Instead of passing the global displayed_dive to calc_crushing_pressure(), use the dive the planner is working on. A small step in making the planner thread-safe. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ddff68ddae
commit
6ce4aeb04e
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ static void interpolate_transition(struct deco_state *ds, struct dive *dive, dur
|
|||
add_segment(ds, depth_to_bar(depth, dive), gasmix, 1, po2.mbar, divemode, prefs.bottomsac);
|
||||
}
|
||||
if (d1.mm > d0.mm)
|
||||
calc_crushing_pressure(ds, depth_to_bar(d1.mm, &displayed_dive));
|
||||
calc_crushing_pressure(ds, depth_to_bar(d1.mm, dive));
|
||||
}
|
||||
|
||||
/* returns the tissue tolerance at the end of this (partial) dive */
|
||||
|
|
Loading…
Add table
Reference in a new issue