summaryrefslogtreecommitdiffstats
path: root/core/deco.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-12-19 20:58:01 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2017-12-24 00:01:39 +0100
commit337f82c87615bbff635cc1f9e3c2f2f7b8a17daa (patch)
tree33b3ca6820f433bdd54e47d72eb6824426fd23d7 /core/deco.c
parentd703ba99c1093cfd39f800725ef3989fb4c121de (diff)
downloadsubsurface-337f82c87615bbff635cc1f9e3c2f2f7b8a17daa.tar.gz
Code cleanup: Indentation mistake plus simplification
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/deco.c')
-rw-r--r--core/deco.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/deco.c b/core/deco.c
index b276e3e82..4eb3fcd8a 100644
--- a/core/deco.c
+++ b/core/deco.c
@@ -543,8 +543,7 @@ void clear_deco(struct deco_state *ds, double surface_pressure)
ds->n2_regen_radius[ci] = get_crit_radius_N2();
ds->he_regen_radius[ci] = get_crit_radius_He();
}
- ds->gf_low_pressure_this_dive = surface_pressure;
- ds->gf_low_pressure_this_dive += buehlmann_config.gf_low_position_min;
+ ds->gf_low_pressure_this_dive = surface_pressure + buehlmann_config.gf_low_position_min;
ds->max_ambient_pressure = 0.0;
}