diff options
author | Robert C. Helling <helling@atdotde.de> | 2019-09-30 07:53:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-03 08:38:19 -0700 |
commit | 85c31f0303c8ad6964f316a7cf48e7e4904ce4d1 (patch) | |
tree | 935ff9eec28dfda2a7bb393bb3ea384ef182f231 /core/planner.c | |
parent | e7e21aec6b71d6767deebfe3e00cdf14e6293082 (diff) | |
download | subsurface-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.c | 2 |
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 { |