diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-12 18:19:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-17 07:26:55 -0800 |
commit | 642d9c80b3597ab512fe937f05e08c10580c06dd (patch) | |
tree | 6e961b97cfb300f61b098b3a63d1df05f0cde91b /core/deco.h | |
parent | 03a7e65cf02602e95ac58b217cc9364546361d2f (diff) | |
download | subsurface-642d9c80b3597ab512fe937f05e08c10580c06dd.tar.gz |
planner: pass in_planner argument to decoMode()
To remove reliance on global state, pass an "in_planner" argument
to decoMode(). Thus, calls to in_planner() can be removed.
This is a more-or-less automated change. Ultimately it would
probably be better to pass the current deco-mode to the affected
functions instead of calling decoMode() with an in_planner
parameter.
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 cc3dacfc2..cea87158e 100644 --- a/core/deco.h +++ b/core/deco.h @@ -61,7 +61,7 @@ extern void restore_deco_state(struct deco_state *data, struct deco_state *targe 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, bool in_planner); -extern double tissue_tolerance_calc(struct deco_state *ds, const struct dive *dive, double pressure); +extern double tissue_tolerance_calc(struct deco_state *ds, const struct dive *dive, double pressure, bool in_planner); extern void calc_crushing_pressure(struct deco_state *ds, double pressure); extern void vpmb_start_gradient(struct deco_state *ds); extern void clear_vpmb_state(struct deco_state *ds); |