diff options
-rw-r--r-- | player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |