[Fix] Forgot to decrement the same value when shift is released, making it possible to increase your speed infinately.
This commit is contained in:
parent
6dcc65e9c9
commit
905e040f78
@ -61,7 +61,7 @@ void Player::ProcessEvents(void) {
|
||||
Debug::logger->message("Speed: %f", PLAYER_SPEED);
|
||||
}
|
||||
if(KeyUp(SDLK_LSHIFT)) {
|
||||
PLAYER_SPEED -= 2;
|
||||
PLAYER_SPEED -= 3;
|
||||
Debug::logger->message("Speed: %f", PLAYER_SPEED);
|
||||
}
|
||||
if(x != oldX || y != oldY) {
|
||||
|
Loading…
Reference in New Issue
Block a user