From 19693d251dcebd67c71bde6e17ac9e4f69c1833b Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:49:13 +0200 Subject: [PATCH] comments --- client/adventureMap/AdventureMapInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index 60947eeb0..fc8288b0a 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/client/adventureMap/AdventureMapInterface.cpp @@ -535,14 +535,14 @@ void AdventureMapInterface::onTileLeftClicked(const int3 &mapPos) LOCPLINT->moveHero(currentHero, LOCPLINT->localState->getPath(currentHero)); return; } - else //remove old path and find a new one if we clicked on accessible tile + else { - if(GH.isKeyboardCtrlDown()) + if(GH.isKeyboardCtrlDown()) //normal click behaviour (as no hero selected) { if(canSelect) LOCPLINT->localState->setSelection(static_cast(topBlocking)); } - else + else //remove old path and find a new one if we clicked on accessible tile { LOCPLINT->localState->setPath(currentHero, mapPos); onHeroChanged(currentHero);