diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-10-12 22:03:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-12 13:46:51 -0700 |
commit | 1c7bc14af9a2ce29cb0f4bebbe3755ce46f31ef4 (patch) | |
tree | d1954eebd00d4bc85eb2f403829c2212c6050d5d /Documentation/images/DivePlanner2_f20.jpg | |
parent | b2deb28f58483122f31bfee64c3f7b23644bf8a3 (diff) | |
download | subsurface-1c7bc14af9a2ce29cb0f4bebbe3755ce46f31ef4.tar.gz |
Don't do a negative time step in recreational mode when beyond NDL
In recreational mode, we keep adding time at the last depth
until an ascent does violate the ceiling. Then we roll back
the last added time step and record the ascent. The test for
the ceiling violated was before adding the time so if it alreay
failed the first time we tried to unroll a time step that was
never added which resulted in a small kink in the pressure graph.
This patch corrects this logic by changin a while to a do {} while.
Furthermore, it removes the computation of deco state during the
final ascent since that is not used anywhere later.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Documentation/images/DivePlanner2_f20.jpg')
0 files changed, 0 insertions, 0 deletions