mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
fixed strafe directions
This commit is contained in:
parent
0a9f69f0ef
commit
65dd903b2f
4
rug.cpp
4
rug.cpp
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user