mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
SDL1 wipe, part 4. Codebase cleanup finished. Untested.
This commit is contained in:
@ -1029,7 +1029,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
|
||||
return;
|
||||
|
||||
ui8 Dir = 0;
|
||||
int k = key.keysym.sym;
|
||||
SDL_Keycode k = key.keysym.sym;
|
||||
const CGHeroInstance *h = curHero(); //selected hero
|
||||
const CGTownInstance *t = curTown(); //selected town
|
||||
|
||||
@ -1156,8 +1156,8 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
|
||||
int3(-1, -1, 0), int3(0, -1, 0), int3(+1, -1, 0) };
|
||||
|
||||
//numpad arrow
|
||||
if(CGuiHandler::isArrowKey(SDLKey(k)))
|
||||
k = CGuiHandler::arrowToNum(SDLKey(k));
|
||||
if(CGuiHandler::isArrowKey(k))
|
||||
k = CGuiHandler::arrowToNum(k);
|
||||
|
||||
k -= SDLK_KP_1;
|
||||
|
||||
|
Reference in New Issue
Block a user