From 8c5c943da949766fafb906f9fa60a6376d04870e Mon Sep 17 00:00:00 2001 From: Adriankhl Date: Fri, 31 Mar 2023 17:48:31 +0200 Subject: [PATCH] Show movement cost immediately after pressing left alt key --- client/adventureMap/CAdvMapInt.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/adventureMap/CAdvMapInt.cpp b/client/adventureMap/CAdvMapInt.cpp index 841d973d3..4a84176b6 100644 --- a/client/adventureMap/CAdvMapInt.cpp +++ b/client/adventureMap/CAdvMapInt.cpp @@ -49,6 +49,7 @@ #include "../../lib/mapping/CMap.h" #include "../../lib/UnlockGuard.h" #include "../../lib/TerrainHandler.h" +#include #define ADVOPT (conf.go()->ac) @@ -791,6 +792,12 @@ void CAdvMapInt::keyPressed(const SDL_Keycode & key) } return; } + case SDLK_LALT: + { + //fake mouse use to trigger onTileHovered() + GH.fakeMouseMove(); + return; + } default: { auto direction = keyToMoveDirection(key);