mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-18 21:54:30 +00:00
fixed strafe directions
This commit is contained in:
1 parent
0a9f69f0ef
commit
65dd903b2f
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user