From 17dfeed71e8d8ba3cf60c4e27da58ada0d0c6112 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sat, 18 Oct 2008 03:54:36 +0000 Subject: [PATCH] bugfix: weird behaviour if you pressed left+right simultaneously --- rc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc.c b/rc.c index 3fe195e..a49155a 100644 --- a/rc.c +++ b/rc.c @@ -6602,8 +6602,7 @@ void handleinput(void) { if (canturn(player)) { player->dir = D_RIGHT; } - } - if (keydown(SDLK_LEFT)) { + } else if (keydown(SDLK_LEFT)) { if (canmove(player)) { movex(player, -getspeed(player)); }