mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #1805 from Adriankhl/fix_alt_shortcut
Show movement cost immediately after pressing left alt key
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include "../../lib/mapping/CMap.h"
|
||||
#include "../../lib/UnlockGuard.h"
|
||||
#include "../../lib/TerrainHandler.h"
|
||||
#include <SDL_keycode.h>
|
||||
|
||||
#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);
|
||||
|
Reference in New Issue
Block a user