diff --git a/comportementJCJ.c b/comportementJCJ.c index 785ecdf..ed4d4e9 100644 --- a/comportementJCJ.c +++ b/comportementJCJ.c @@ -20,10 +20,10 @@ void compJCJ(int taille){ if(SourisCliquee()){ SourisX = _X; SourisY = _Y; + printf("%d, %d\n", SourisX, SourisY); } - printf("%d, %d\n", SourisX, SourisY); - for(y = 100; y >= taille * y; y += 50){ - for(x = 50; x >= taille * x; x += 50){ + for(y = 100; y < taille * 75; y += 50){ + for(x = 50; x < taille * 75; x += 50){ if(SourisX >= x && SourisY >= y && SourisX <= x + 50 && SourisY <= y + 50){ printf("test\n"); DessinerSegment(0, 0, 500, 500);