summaryrefslogtreecommitdiff
path: root/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'player.cpp')
-rw-r--r--player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.cpp b/player.cpp
index 2ab07de..3db0237 100644
--- a/player.cpp
+++ b/player.cpp
@@ -34,7 +34,7 @@ void Player::draw() {
void Player::update() {
Uint8 *keystate = SDL_GetKeyState(NULL);
- float factor = move_factor * (SDL_GetModState() & (KMOD_LSHIFT | KMOD_RSHIFT) ? focus_factor : 1);
+ float factor = move_factor * (SDL_GetModState() & KMOD_SHIFT ? focus_factor : 1);
float x_speed = factor * keystate[SDLK_RIGHT] - factor * keystate[SDLK_LEFT];
float y_speed = factor * keystate[SDLK_UP] - factor * keystate[SDLK_DOWN];