From 85655d5534589a338b1e0bbd25c8d82ae33eac7d Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 4 Jul 2023 21:42:37 +0300 Subject: [PATCH] Block map level toggle on maps without underground --- client/adventureMap/AdventureMapShortcuts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/adventureMap/AdventureMapShortcuts.cpp b/client/adventureMap/AdventureMapShortcuts.cpp index ea5a267c7..40fa7df6a 100644 --- a/client/adventureMap/AdventureMapShortcuts.cpp +++ b/client/adventureMap/AdventureMapShortcuts.cpp @@ -402,7 +402,7 @@ bool AdventureMapShortcuts::optionCanViewQuests() bool AdventureMapShortcuts::optionCanToggleLevel() { - return optionInMapView() && LOCPLINT->cb->getMapSize().z > 0; + return optionInMapView() && LOCPLINT->cb->getMapSize().z > 1; } bool AdventureMapShortcuts::optionMapLevelSurface()