mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make calculate_cns() member of dive_table
This function implicitely accessed the global divelog. To make that explicit make it a member of dive_table, such that the caller must access it via the global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f3b8e3c4aa
commit
b34116e2e2
8 changed files with 68 additions and 67 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <string.h>
|
||||
#include "dive.h"
|
||||
#include "divelist.h" // for init_decompression()
|
||||
#include "divelog.h"
|
||||
#include "sample.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "deco.h"
|
||||
|
@ -122,7 +123,7 @@ static int tissue_at_end(struct deco_state *ds, struct dive *dive, const struct
|
|||
if (cache) {
|
||||
cache.restore(ds, true);
|
||||
} else {
|
||||
surface_interval = init_decompression(ds, dive, true);
|
||||
surface_interval = divelog.dives.init_decompression(ds, dive, true);
|
||||
cache.cache(ds);
|
||||
}
|
||||
if (dc->samples.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue