summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deco.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/deco.c b/deco.c
index 9e286ec05..05adba555 100644
--- a/deco.c
+++ b/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));
}