diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-16 23:04:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-16 23:04:30 -0700 |
commit | 912560f928e68fb1235b17ed4bb06eb8d19a8ae7 (patch) | |
tree | d3560504965b9899f9bc93ef9437067b75be1871 /equipment.c | |
parent | 387553f0b3abdd836c4dfd8368459a67e56e06a2 (diff) | |
download | subsurface-912560f928e68fb1235b17ed4bb06eb8d19a8ae7.tar.gz |
Planner: don't track cylinder pressure if working pressure is 0
The pressure graph will go from 0 to negative - one could make a weak
argument that this would at least tell you how much pressure you'd need in
the cylinder to start with, but that's kinda lame.
Fixes #615
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c index 66427324e..14d02df77 100644 --- a/equipment.c +++ b/equipment.c @@ -243,7 +243,7 @@ void reset_cylinders(struct dive *dive, bool track_gas) continue; if (cyl->depth.mm == 0) /* if the gas doesn't give a mod, assume conservative pO2 */ cyl->depth = gas_mod(&cyl->gasmix, pO2, M_OR_FT(3,10)); - if (track_gas && cyl->type.workingpressure.mbar) + if (track_gas) cyl->start.mbar = cyl->end.mbar = cyl->type.workingpressure.mbar; cyl->gas_used.mliter = 0; cyl->deco_gas_used.mliter = 0; |