diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-01-07 03:11:19 +0100 |
---|---|---|
committer | Subsurface <dirk@subsurface-divelog.org> | 2017-01-06 20:43:23 -0800 |
commit | 935734100f07092800ec4467b88c59a9a4efd572 (patch) | |
tree | 20a3398c4f7bece093928f754a84e975f74f6ffb /tests | |
parent | bb4bf639c333bee28d398c3670f52797d726b126 (diff) | |
download | subsurface-935734100f07092800ec4467b88c59a9a4efd572.tar.gz |
Rename prefs.deco_mode to prefs.planner_deco_mode
This is to avoid confusion with planner.display_deco_mode.
When accessing the "current deco mode" use the decoMode()
helper function.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testplan.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testplan.cpp b/tests/testplan.cpp index 43473db7a..a3fb5240a 100644 --- a/tests/testplan.cpp +++ b/tests/testplan.cpp @@ -32,7 +32,7 @@ void setupPrefsVpmb() prefs.ascratelast6m = prefs.ascrate50; prefs.descrate = 99000 / 60; prefs.last_stop = false; - prefs.deco_mode = VPMB; + prefs.planner_deco_mode = VPMB; prefs.vpmb_conservatism = 0; } @@ -284,7 +284,7 @@ void TestPlan::testMetric() setupPrefs(); prefs.unit_system = METRIC; prefs.units.length = units::METERS; - prefs.deco_mode = BUEHLMANN; + prefs.planner_deco_mode = BUEHLMANN; struct diveplan testPlan = {}; setupPlan(&testPlan); @@ -320,7 +320,7 @@ void TestPlan::testImperial() setupPrefs(); prefs.unit_system = IMPERIAL; prefs.units.length = units::FEET; - prefs.deco_mode = BUEHLMANN; + prefs.planner_deco_mode = BUEHLMANN; struct diveplan testPlan = {}; setupPlan(&testPlan); |