summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2015-09-02 21:54:13 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-07 17:26:55 -0700
commitbc3a2ff89b8143d253f66b852bf5521911371428 (patch)
tree401c5472227b7d0d85a71a9d1bdab42a255f116f /planner.c
parentf09b46d47aee38291e4b7fa6a8fd3d4dc3ea955a (diff)
downloadsubsurface-bc3a2ff89b8143d253f66b852bf5521911371428.tar.gz
Planner notes: Show VPM-B conservatism
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index e0f889ec4..4a191caba 100644
--- a/planner.c
+++ b/planner.c
@@ -552,7 +552,10 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
snprintf(temp, sz_temp, translate("gettextFromC", "based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"),
diveplan->gflow, diveplan->gfhigh);
} else if (prefs.deco_mode == VPMB){
- snprintf(temp, sz_temp, "%s", translate("gettextFromC", "based on VPM-B"));
+ if (prefs.conservatism_level == 0)
+ snprintf(temp, sz_temp, "%s", translate("gettextFromC", "based on VPM-B at nominal conservatism"));
+ else
+ snprintf(temp, sz_temp, translate("gettextFromC", "based on VPM-B at +%d conservatism"), prefs.conservatism_level);
} else if (prefs.deco_mode == RECREATIONAL){
snprintf(temp, sz_temp, translate("gettextFromC", "recreational mode based on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"),
diveplan->gflow, diveplan->gfhigh);