mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-22 03:39:45 +02:00
Show movement cost immediately after pressing left alt key
This commit is contained in:
parent
e485c5811e
commit
8c5c943da9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user