diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2015-04-09 20:26:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-09 14:36:33 -0700 |
commit | 68ec73f1b06ff8a9cec9fb7def25eedf492b9610 (patch) | |
tree | 02b8903f23737f2d6167264ac30ab2f8e4e7cafa /planner.c | |
parent | afea30fd8a40c16bada295b9b6a89e72d1abe607 (diff) | |
download | subsurface-68ec73f1b06ff8a9cec9fb7def25eedf492b9610.tar.gz |
Recmode: Fix ascent gas consumption.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -806,9 +806,9 @@ void track_ascent_gas(int depth, cylinder_t *cylinder, int avg_depth, int bottom int deltad = ascent_velocity(depth, avg_depth, bottom_time) * TIMESTEP; if (deltad > depth) deltad = depth; - update_cylinder_pressure(&displayed_dive, depth, depth - deltad, TIMESTEP, prefs.bottomsac, cylinder, true); + update_cylinder_pressure(&displayed_dive, depth, depth - deltad, TIMESTEP, prefs.decosac, cylinder, true); if (depth <= 5000 && safety_stop){ - update_cylinder_pressure(&displayed_dive, 5000, 5000, 180, prefs.bottomsac, cylinder, true); + update_cylinder_pressure(&displayed_dive, 5000, 5000, 180, prefs.decosac, cylinder, true); safety_stop = false; } depth -= deltad; |