mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Leftovers from introduction of in_planner() helper function
I have no idea how these could have been left behind Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6c0bcec3e7
commit
2a50731139
3 changed files with 4 additions and 2 deletions
4
deco.c
4
deco.c
|
@ -21,6 +21,8 @@
|
|||
#include <assert.h>
|
||||
#include <planner.h>
|
||||
|
||||
extern bool in_planner();
|
||||
|
||||
//! Option structure for Buehlmann decompression.
|
||||
struct buehlmann_config {
|
||||
double satmult; //! safety at inert gas accumulation as percentage of effect (more than 100).
|
||||
|
@ -167,7 +169,7 @@ static double tissue_tolerance_calc(const struct dive *dive)
|
|||
double lowest_ceiling = 0.0;
|
||||
double tissue_lowest_ceiling[16];
|
||||
|
||||
if (prefs.deco_mode != VPMB || !in_planner) {
|
||||
if (prefs.deco_mode != VPMB || !in_planner()) {
|
||||
for (ci = 0; ci < 16; ci++) {
|
||||
tissue_inertgas_saturation[ci] = tissue_n2_sat[ci] + tissue_he_sat[ci];
|
||||
buehlmann_inertgas_a[ci] = ((buehlmann_N2_a[ci] * tissue_n2_sat[ci]) + (buehlmann_He_a[ci] * tissue_he_sat[ci])) / tissue_inertgas_saturation[ci];
|
||||
|
|
|
@ -25,7 +25,6 @@ extern struct dive *planned_dive;
|
|||
extern char *cache_data;
|
||||
extern const char *disclaimer;
|
||||
extern double plangflow, plangfhigh;
|
||||
extern bool in_planner;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -36,5 +36,6 @@ fraction_t string_to_fraction(const char *str);
|
|||
int getCloudURL(QString &filename);
|
||||
void loadPreferences();
|
||||
bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);
|
||||
extern "C" bool in_planner();
|
||||
|
||||
#endif // QTHELPER_H
|
||||
|
|
Loading…
Add table
Reference in a new issue