mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Fix deco display bug for dives with multiple samples at the same time
While one might argue that multiple samples with the same time are 'odd' that still shouldn't be an excuse to incorrectly reset the ceiling value for them back to 0. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d864f5cdfa
commit
8b24784a7a
1 changed files with 4 additions and 1 deletions
|
@ -1874,7 +1874,10 @@ static void calculate_deco_information(struct dive *dive, struct divecomputer *d
|
|||
if (min_pressure > tissue_tolerance)
|
||||
tissue_tolerance = min_pressure;
|
||||
}
|
||||
entry->ceiling = deco_allowed_depth(tissue_tolerance, surface_pressure, dive, !prefs.calc_ceiling_3m_incr);
|
||||
if (t0 == t1)
|
||||
entry->ceiling = (entry - 1)->ceiling;
|
||||
else
|
||||
entry->ceiling = deco_allowed_depth(tissue_tolerance, surface_pressure, dive, !prefs.calc_ceiling_3m_incr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue