summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-27 23:04:24 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2020-11-24 10:54:10 +0100
commitb36178a00a37f3679decebb52fffe6e41e5c5704 (patch)
tree6a7997c041dd28d2033b84def68968c69bf8b402 /core/dive.h
parente47b812fd07e8652dd65795510ff13c5657d4baf (diff)
downloadsubsurface-b36178a00a37f3679decebb52fffe6e41e5c5704.tar.gz
cylindermodel: remove in_planner() use
in_planner() is problematic, since it is uses desktop-only application state. Since the cylinder-model already has an appropriate inPlanner flag, use this instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 40298d85e..09ef61b42 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -95,7 +95,7 @@ struct dive_components {
extern bool has_gaschange_event(const struct dive *dive, const struct divecomputer *dc, int idx);
extern int explicit_first_cylinder(const struct dive *dive, const struct divecomputer *dc);
-extern fraction_t best_o2(depth_t depth, const struct dive *dive);
+extern fraction_t best_o2(depth_t depth, const struct dive *dive, bool in_planner);
extern fraction_t best_he(depth_t depth, const struct dive *dive, bool o2narcotic, fraction_t fo2);
extern int get_surface_pressure_in_mbar(const struct dive *dive, bool non_null);