diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 22:11:37 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 22:11:37 -0700 |
commit | 4ed8b5f86f50ab1a85855bb28f2656f7d27a4905 (patch) | |
tree | 8d7fa2e411057f66deea0c0365e6d7c3856ec061 /planner.c | |
parent | ff7bff48b8687f24c46a5885d318cb9e7cea6246 (diff) | |
download | subsurface-4ed8b5f86f50ab1a85855bb28f2656f7d27a4905.tar.gz |
Planner: add missing disclaimer
This may not be the best way to do it, but it's better than just printing
"(null)".
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -24,7 +24,6 @@ int decostoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, 180000, 190000, 200000, 220000, 240000, 260000, 280000, 300000, 320000, 340000, 360000, 380000 }; double plangflow, plangfhigh; -char *disclaimer; #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan) @@ -491,8 +490,13 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive) if (!dp) return; - snprintf(buffer, sizeof(buffer), translate("gettextFromC", "%s\nSubsurface dive plan\nbased on GFlow = %.0f and GFhigh = %.0f\n\n"), - disclaimer, diveplan->gflow * 100, diveplan->gfhigh * 100); + snprintf(buffer, sizeof(buffer), + translate("gettextFromC", "%s\nSubsurface dive plan\nbased on GFlow = %d and GFhigh = %d\n\n"), + translate("gettextFromC", "DISCLAIMER / WARNING: THIS IS A NEW IMPLEMENTATION OF THE BUHLMANN " + "ALGORITHM AND A DIVE PLANNER IMPLEMENTION BASED ON THAT WHICH HAS " + "RECEIVED ONLY A LIMITED AMOUNT OF TESTING. WE STRONGLY RECOMMEND NOT TO " + "PLAN DIVES SIMPLY BASED ON THE RESULTS GIVEN HERE."), + diveplan->gflow, diveplan->gfhigh); /* we start with gas 0, then check if that was changed */ o2 = get_o2(&dive->cylinder[0].gasmix); he = get_he(&dive->cylinder[0].gasmix); |