1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

UI now shows spell range from config

This commit is contained in:
Ivan Savenko
2025-07-10 17:27:27 +03:00
parent 79f3126c63
commit 5ada2d19e1
16 changed files with 44 additions and 40 deletions

View File

@@ -233,7 +233,6 @@ void MapViewController::updateState()
adventureContext->settingShowGrid = settings["gameTweaks"]["showGrid"].Bool();
adventureContext->settingShowVisitable = settings["session"]["showVisitable"].Bool();
adventureContext->settingShowBlocked = settings["session"]["showBlocked"].Bool();
adventureContext->settingSpellRange = settings["session"]["showSpellRange"].Bool();
adventureContext->settingTextOverlay = (ENGINE->isKeyboardAltDown() || ENGINE->input().getNumTouchFingers() == 2) && settings["general"]["enableOverlay"].Bool();
}
}