aboutsummaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-12 18:19:24 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-17 07:26:55 -0800
commit642d9c80b3597ab512fe937f05e08c10580c06dd (patch)
tree6e961b97cfb300f61b098b3a63d1df05f0cde91b /core/divelist.c
parent03a7e65cf02602e95ac58b217cc9364546361d2f (diff)
downloadsubsurface-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/divelist.c')
-rw-r--r--core/divelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.c b/core/divelist.c
index ff7561f92..526b4f0b7 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -580,7 +580,7 @@ int init_decompression(struct deco_state *ds, const struct dive *dive, bool in_p
}
// I do not dare to remove this call. We don't need the result but it might have side effects. Bummer.
- tissue_tolerance_calc(ds, dive, surface_pressure);
+ tissue_tolerance_calc(ds, dive, surface_pressure, in_planner);
return surface_time;
}