bugfix: weird behaviour if you pressed left+right simultaneously

This commit is contained in:
Rob Pearce 2008-10-18 03:54:36 +00:00
parent 1d6d196943
commit 17dfeed71e
1 changed files with 1 additions and 2 deletions

3
rc.c
View File

@ -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));
} }