From 4db49b6ccb00dec38ffcfb67a6f74abcb4b0d92c Mon Sep 17 00:00:00 2001 From: morinl Date: Sat, 3 Dec 2022 16:38:44 +0100 Subject: [PATCH] fix du mode triche --- jeu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeu.c b/jeu.c index f795dd4..3864b80 100644 --- a/jeu.c +++ b/jeu.c @@ -58,7 +58,7 @@ int jeu(int position[20][4], int nb_paires,int tab[40]){ temps3=temps; /*Triche*/ - if(ToucheEnAttente() && Touche(XK_t)){ + if(ToucheEnAttente() && Touche()==XK_t){ n=0; while(n<1){ x=0; @@ -73,7 +73,7 @@ int jeu(int position[20][4], int nb_paires,int tab[40]){ x++; } } - if(ToucheEnAttente() && Touche(XK_t)){ + if(ToucheEnAttente() && Touche()==XK_t){ x=0; for (pos_y=10;pos_y<=370;pos_y=pos_y+90){ for (pos_x=10;pos_x<=640;pos_x=pos_x+90){