From c01961ff3c5f0ddea22a549537dbf3b57eb4012b Mon Sep 17 00:00:00 2001 From: ozvann Date: Fri, 15 Nov 2024 08:36:34 +0100 Subject: [PATCH] =?UTF-8?q?changement=20un=20petit=20peu=20de=20comporteme?= =?UTF-8?q?ntJCJ.c=20pour=20r=C3=A9paration=20de=20la=20d=C3=A9tection=20d?= =?UTF-8?q?u=20clique=20du=20joueur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comportementJCJ.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);