mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Disable minimum gas calculation for recreational mode
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
7f8c3592ce
commit
8a4d3876d6
2 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue