summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 21:27:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 21:36:50 -0700
commitef0272f5efb7cfd7d864dbe1f53b18348de305d3 (patch)
tree18822cf9110b9611bb4146f94b2513fceb12df40 /planner.c
parent596095389ba703341839e21cbbe1b438a50622d2 (diff)
downloadsubsurface-ef0272f5efb7cfd7d864dbe1f53b18348de305d3.tar.gz
Perform deco calculation for plan
This uses a bunch of default values that we eventually need to get from the UI, but it's a first step towards a working dive planner. This exhibits some graphical artifacts when running, but other than that appears to be mostly correct. Things go far worse if I enable the changing of the scale once the deco makes the dive longer than the displayed time window. Things quickly spiral out of control. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 000c4c602..8345d160e 100644
--- a/planner.c
+++ b/planner.c
@@ -605,7 +605,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, c
int gaschangenr;
int *stoplevels;
- set_gf(plangflow, plangfhigh);
+ set_gf(diveplan->gflow, diveplan->gfhigh);
if (!diveplan->surface_pressure)
diveplan->surface_pressure = SURFACE_PRESSURE;
if (*divep)