From 10905febae9effc7bf9feeacf67d0e53c2069e81 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 22 Mar 2016 15:09:56 -0500 Subject: [PATCH] updated copyright www --- src/lib/16_in.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 1337f5ed..1ae5552e 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -857,17 +857,20 @@ register KeyboardDef *def; mx = motion_Right,my = motion_Down;*/ if(DIRECTIONIFELSE) { - if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){ + //if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){ if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down])) my = motion_Up; if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up])) my = motion_Down; - }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){ + //}else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){ if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right])) mx = motion_Left; if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left]))// || player[pn].pdir != 1) mx = motion_Right; - }else{ //2 keys pressed + + //}else + if(mx+my>1 0){ printf("dir=%c ", dirchar(dir)); printf("pdir=%c ", dirchar(player[pn].pdir)); } - } + //} } //input from player if (inpu.Keyboard[def->button0]) -- 2.39.5