diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-12 17:52:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-17 07:26:55 -0800 |
commit | 03a7e65cf02602e95ac58b217cc9364546361d2f (patch) | |
tree | df76bb46756ce14ee8ecd12289921e956e3b9243 /core/divelist.c | |
parent | 8103e947aa80da275afe692bc19fa7bb88ccd033 (diff) | |
download | subsurface-03a7e65cf02602e95ac58b217cc9364546361d2f.tar.gz |
planner: pass in_planner argument to clear_deco()
To remove reliance on global state, pass an "in_planner" argument
to clear_deco(). Thus, calls to in_planner() can be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c index 583451e8f..ff7561f92 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -521,7 +521,7 @@ int init_decompression(struct deco_state *ds, const struct dive *dive, bool in_p #if DECO_CALC_DEBUG & 2 printf("Init deco\n"); #endif - clear_deco(ds, surface_pressure); + clear_deco(ds, surface_pressure, in_planner); deco_init = true; #if DECO_CALC_DEBUG & 2 printf("Tissues after init:\n"); @@ -559,7 +559,7 @@ int init_decompression(struct deco_state *ds, const struct dive *dive, bool in_p #if DECO_CALC_DEBUG & 2 printf("Init deco\n"); #endif - clear_deco(ds, surface_pressure); + clear_deco(ds, surface_pressure, in_planner); #if DECO_CALC_DEBUG & 2 printf("Tissues after no previous dive, surface time set to 48h:\n"); dump_tissues(ds); |