summaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-09-30 07:53:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-03 08:38:19 -0700
commit85c31f0303c8ad6964f316a7cf48e7e4904ce4d1 (patch)
tree935ff9eec28dfda2a7bb393bb3ea384ef182f231 /core/planner.c
parente7e21aec6b71d6767deebfe3e00cdf14e6293082 (diff)
downloadsubsurface-85c31f0303c8ad6964f316a7cf48e7e4904ce4d1.tar.gz
Analyze gasswitches in CCR bailout
The test if we have to create gas switches wasn't yet aware of the bailout option. Reported-by: Dennis Arreborg <dennis@arreborg.eu> Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c
index fd4ed2c36..d488413c8 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -757,7 +757,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i
best_first_ascend_cylinder = current_cylinder;
/* Find the gases available for deco */
- if (po2) { // Don't change gas in CCR mode
+ if (divemode == CCR && !prefs.dobailout) { // Don't change gas in CCR mode
gaschanges = NULL;
gaschangenr = 0;
} else {