summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 09:59:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 10:16:59 -0700
commit2a871d7fe5257adf5631cfb46f2dfa84cd2d9201 (patch)
tree2eaef80e7ab303bfb3a22fcebb40cb1abcb82906 /dive.h
parentf44a7509b3455492393874fe8a35bb3b564fee86 (diff)
downloadsubsurface-2a871d7fe5257adf5631cfb46f2dfa84cd2d9201.tar.gz
Planner: track gas used even if we don't have a real cylinder
We tracked gas used by simulating a dive with a cylinder - but for that we need a cylinder size and working pressure. If the user just enters a gas but no cylinder data (likely in order to figure out how much gas is used so that she then can pick a big enough cylinder), we didn't show any gas consumption. It kinda sucks to add another member to the cylinder structure, but this seemed far more reasonable then some other, global structure that independently tracks gas usage. This just seemed to make sense. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 2b1da2073..95de166a0 100644
--- a/dive.h
+++ b/dive.h
@@ -60,6 +60,7 @@ typedef struct
pressure_t start, end, sample_start, sample_end;
depth_t depth;
bool used;
+ volume_t gas_used;
} cylinder_t;
typedef struct