1
0
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:
AlexVinS
2015-06-21 01:38:05 +03:00
parent 8c236e30bb
commit ed281a3cc6
7 changed files with 18 additions and 23 deletions

View File

@ -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;