diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-13 19:37:41 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-13 19:37:41 -0800 |
commit | b94a93d06154a7b245e374512592fc25d8e58370 (patch) | |
tree | 6c2d379838a6d584c46f8f7e4d5f00fde1300c57 /windows.c | |
parent | 23ce727e62c5670ca30c487fc9fd52eb25883de5 (diff) | |
download | subsurface-b94a93d06154a7b245e374512592fc25d8e58370.tar.gz |
During multi-dive deco calculations don't look at dives from other trips
Previously the code in init_decompression() would mindlessly walk back the
dive_table until it found a gap of at least 48h and take all those dives
into consideration when calculating tissue saturation. This goes horribly
wrong if you load dives from two divers into the same data file.
With this commit things will still turn out correctly, as long as the
dives are in separate trips in for each of the divers. So with this I can
load both Linus' and my divelog and things stay sane even on our shared
dive trips.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'windows.c')
0 files changed, 0 insertions, 0 deletions