diff options
author | Robert C. Helling <helling@atdotde.de> | 2016-04-07 15:06:44 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2016-04-11 21:23:35 +0200 |
commit | a260dc2f8ac3123b85a9f5bd0a3fd3186db67055 (patch) | |
tree | 8f3fbc2bad10aef5baaaa87d71cde37798976bb3 /android-mobile | |
parent | ccff22759612455ba5b4eb7232b6b8d50177ba4a (diff) | |
download | subsurface-a260dc2f8ac3123b85a9f5bd0a3fd3186db67055.tar.gz |
Fix time of first ceiling calculation
In our verision of VPM-B for real dives, we take as the deco time the
difference between the time of the deepest ceiling and the time when the
ceiling clears.
When the display of ceilings was set to multiples of 3m this was confused, as
the maximum finder had issues: First of all, it updated the time when the ceiling
was the same (which was almost always the case for stepped ceilings) but changing
>= to > was not enough, since then the first time a deepest stepped ceiling was
reached was used.
This patch uses the actual ceiling (not rounded to the next integer multiple of 3m)
for this calculation to get rid of this problem.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'android-mobile')
0 files changed, 0 insertions, 0 deletions