diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-12 17:47:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-17 07:26:55 -0800 |
commit | 8103e947aa80da275afe692bc19fa7bb88ccd033 (patch) | |
tree | 598ddd2116455308c9133561b5e8b2b01fba536d /core/deco.h | |
parent | 93ecad1b0413645ba59ffe2e50c3636d8673ccb5 (diff) | |
download | subsurface-8103e947aa80da275afe692bc19fa7bb88ccd033.tar.gz |
planner: pass in_planner argument to vpmb_next_gradient()
To remove reliance on global state, pass an "in_planner" argument
to vpmb_next_gradient(). Thus, calls to in_planner() can be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/deco.h')
-rw-r--r-- | core/deco.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/deco.h b/core/deco.h index f8aa73abd..dfe59bea2 100644 --- a/core/deco.h +++ b/core/deco.h @@ -60,7 +60,7 @@ extern void cache_deco_state(struct deco_state *source, struct deco_state **data extern void restore_deco_state(struct deco_state *data, struct deco_state *target, bool keep_vpmb_state); extern void nuclear_regeneration(struct deco_state *ds, double time); extern void vpmb_start_gradient(struct deco_state *ds); -extern void vpmb_next_gradient(struct deco_state *ds, double deco_time, double surface_pressure); +extern void vpmb_next_gradient(struct deco_state *ds, double deco_time, double surface_pressure, bool in_planner); extern double tissue_tolerance_calc(struct deco_state *ds, const struct dive *dive, double pressure); extern void calc_crushing_pressure(struct deco_state *ds, double pressure); extern void vpmb_start_gradient(struct deco_state *ds); |