mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Some unification between Buehlmann and VPM-B
This patch makes deco_allowed_depth() work both for Buehlmann as well as VPM-B (as long as the VPM-B internal variable total_gradient[] is valid). As a bonus, in VPM-B mode, in the planner, the ceilings are VPM-B ceilings and not Buehlmann GF. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2455a5dec7
commit
a8ce8c3ef1
5 changed files with 54 additions and 51 deletions
|
@ -1716,6 +1716,8 @@ void MainWindow::setApplicationState(const QByteArray& state) {
|
|||
return;
|
||||
|
||||
currentApplicationState = state;
|
||||
in_planner = (state == "PlanDive" || state == "EditPlannedDive");
|
||||
|
||||
#define SET_CURRENT_INDEX( X ) \
|
||||
if (applicationState[state].X) { \
|
||||
ui.X->setCurrentWidget( applicationState[state].X); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue