mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix bug in smooth ceiling mode
The ceiling calculations for the gradient factors still had a 3m increment hardcoded. This is now also conditional on the smooth parameter. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
635f190302
commit
641c0d252b
1 changed files with 4 additions and 1 deletions
5
deco.c
5
deco.c
|
@ -247,7 +247,10 @@ unsigned int deco_allowed_depth(double tissues_tolerance, double surface_pressur
|
|||
below_gradient_limit = (new_gradient_factor < actual_gradient_limit(&mydata));
|
||||
while(!below_gradient_limit)
|
||||
{
|
||||
mydata.pressure += PRESSURE_CHANGE_3M;
|
||||
if (!smooth)
|
||||
mydata.pressure += PRESSURE_CHANGE_3M;
|
||||
else
|
||||
mydata.pressure += PRESSURE_CHANGE_3M / 30; /* 4in / 10cm instead */
|
||||
new_gradient_factor = gradient_factor_calculation(&mydata);
|
||||
below_gradient_limit = (new_gradient_factor < actual_gradient_limit(&mydata));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue