[Fix] Forgot to decrement the same value when shift is released, making it possible to increase your speed infinately.

This commit is contained in:
Rtch90 2012-04-12 22:35:43 +01:00
parent 6dcc65e9c9
commit 905e040f78

View File

@ -61,7 +61,7 @@ void Player::ProcessEvents(void) {
Debug::logger->message("Speed: %f", PLAYER_SPEED); Debug::logger->message("Speed: %f", PLAYER_SPEED);
} }
if(KeyUp(SDLK_LSHIFT)) { if(KeyUp(SDLK_LSHIFT)) {
PLAYER_SPEED -= 2; PLAYER_SPEED -= 3;
Debug::logger->message("Speed: %f", PLAYER_SPEED); Debug::logger->message("Speed: %f", PLAYER_SPEED);
} }
if(x != oldX || y != oldY) { if(x != oldX || y != oldY) {