mirror of
https://github.com/BreizhHardware/bloubloulespoissons.git
synced 2026-01-18 16:47:31 +01:00
Fix player speed
This commit is contained in:
@@ -55,11 +55,12 @@ void Player::handlePlayerMovement(int ENV_WIDTH, int ENV_HEIGHT, int windowWidth
|
||||
int tempY = this->y;
|
||||
int speed = this->playerSpeed;
|
||||
bool isSprinting = false;
|
||||
/*
|
||||
if (keystate[SDL_SCANCODE_LSHIFT]) {
|
||||
speed = this->playerSpeed * 2;
|
||||
isSprinting = true;
|
||||
}
|
||||
|
||||
*/
|
||||
bool moved = false;
|
||||
if (this->energy != 0) {
|
||||
if (isPlayingOnline) {
|
||||
|
||||
Reference in New Issue
Block a user