1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 18:59:59 +00:00

fixed strafe directions

This commit is contained in:
Zeno Rogue 2017-12-26 00:40:09 +01:00
parent 0a9f69f0ef
commit 65dd903b2f

View File

@ -959,8 +959,8 @@ void actDraw() {
ld strafex = 0, strafey = 0;
if(keystate[SDLK_LSHIFT]) {
if(keystate[SDLK_LEFT]) strafex -= alpha;
if(keystate[SDLK_RIGHT]) strafex += alpha;
if(keystate[SDLK_LEFT]) strafex += alpha;
if(keystate[SDLK_RIGHT]) strafex -= alpha;
if(keystate[SDLK_UP]) strafey -= alpha;
if(keystate[SDLK_DOWN]) strafey += alpha;
}