aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-03-06 21:46:05 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:01:35 -0800
commit8a4d3876d6ada94cb83f013f70a0e540ca0435f1 (patch)
tree309f601e7474ba853426585e9aca8e0b01ab8eee /core
parent7f8c3592ce29d5fd4cd177d8e86ede9fdf3ab747 (diff)
downloadsubsurface-8a4d3876d6ada94cb83f013f70a0e540ca0435f1.tar.gz
Disable minimum gas calculation for recreational mode
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core')
-rw-r--r--core/planner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/planner.c b/core/planner.c
index ab4ba2dd2..4d66858e4 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -892,11 +892,11 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
translate("gettextFromC", "Warning:"),
translate("gettextFromC", "not enough reserve for gas sharing on ascent!"));
- /* Do and print minimum gas calculation for last bottom gas, but only for OC mode */
- /* and if no other warning was set before. */
+ /* Do and print minimum gas calculation for last bottom gas, but only for OC mode, */
+ /* not for recreational mode and if no other warning was set before. */
else
if (lastbottomdp && gasidx == lastbottomdp->cylinderid
- && dive->dc.divemode == OC) {
+ && dive->dc.divemode == OC && decoMode() != RECREATIONAL) {
/* Calculate minimum gas volume. */
volume_t mingasv;
mingasv.mliter = prefs.problemsolvingtime * prefs.bottomsac * prefs.sacfactor / 100.0