diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-01 09:59:38 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-01 10:16:59 -0700 |
commit | 2a871d7fe5257adf5631cfb46f2dfa84cd2d9201 (patch) | |
tree | 2eaef80e7ab303bfb3a22fcebb40cb1abcb82906 /dive.h | |
parent | f44a7509b3455492393874fe8a35bb3b564fee86 (diff) | |
download | subsurface-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |