mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Reset VPM-B state between repetitive dives
This resets the maximum crushing pressures and the maximal ambient pressure between repetitive dives to prevent anomalies that a dive produces a shorter deco when following another one than without. Reported-by: sfuchs@gmx.de Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ec20d36f3c
commit
032c3258ed
3 changed files with 12 additions and 0 deletions
|
@ -423,6 +423,7 @@ unsigned int init_decompression(struct dive *dive)
|
|||
}
|
||||
add_dive_to_deco(pdive);
|
||||
laststart = pdive->when;
|
||||
clear_vpmb_state();
|
||||
#if DECO_CALC_DEBUG & 2
|
||||
printf("added dive #%d\n", pdive->number);
|
||||
dump_tissues();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue