bugfix: weird behaviour if you pressed left+right simultaneously
This commit is contained in:
parent
1d6d196943
commit
17dfeed71e
3
rc.c
3
rc.c
|
@ -6602,8 +6602,7 @@ void handleinput(void) {
|
||||||
if (canturn(player)) {
|
if (canturn(player)) {
|
||||||
player->dir = D_RIGHT;
|
player->dir = D_RIGHT;
|
||||||
}
|
}
|
||||||
}
|
} else if (keydown(SDLK_LEFT)) {
|
||||||
if (keydown(SDLK_LEFT)) {
|
|
||||||
if (canmove(player)) {
|
if (canmove(player)) {
|
||||||
movex(player, -getspeed(player));
|
movex(player, -getspeed(player));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue