1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Added option to disable radial wheel in config (no UI)

This commit is contained in:
Ivan Savenko
2023-07-21 15:47:20 +03:00
parent 3a3306863a
commit 6cd219738b
2 changed files with 17 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include "../../lib/ArtifactUtils.h"
#include "../../lib/CGeneralTextHandler.h"
#include "../../lib/CCreatureHandler.h"
#include "../../lib/CConfigHandler.h"
#include "../../lib/mapObjects/CGHeroInstance.h"
#include "../../lib/TextOperations.h"
#include "../../lib/gameState/CGameState.h"
@@ -353,6 +354,9 @@ void CGarrisonSlot::gesture(bool on, const Point & initialPosition, const Point
if(!myStack)
return;
if (!settings["input"]["radialWheelGarrisonSwipe"].Bool())
return;
const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy();
bool stackExists = myStack != nullptr;