fix du mode triche
This commit is contained in:
parent
d1c864e74b
commit
4db49b6ccb
4
jeu.c
4
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){
|
||||
|
Loading…
Reference in New Issue
Block a user