diff options
-rw-r--r-- | subsurface-core/gaspressures.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/subsurface-core/gaspressures.c b/subsurface-core/gaspressures.c index 43c0a11cf..c63e16204 100644 --- a/subsurface-core/gaspressures.c +++ b/subsurface-core/gaspressures.c @@ -191,17 +191,7 @@ static struct pr_interpolate_struct get_pr_interpolate_data(pr_track_t *segment, interpolate.pressure_time += entry->pressure_time; break; } - if (entry->sec == segment->t_start) { - interpolate.acc_pressure_time = 0; - interpolate.pressure_time = 0; - continue; - } - if (i < cur) { - interpolate.acc_pressure_time += entry->pressure_time; - interpolate.pressure_time += entry->pressure_time; - continue; - } - if (i == cur) { + if (i <= cur) { interpolate.acc_pressure_time += entry->pressure_time; interpolate.pressure_time += entry->pressure_time; continue; |