From 02f09680d3b1c82021adcba948e5cc54f6c92be3 Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Sun, 15 Dec 2024 17:39:02 +0100 Subject: [PATCH] wr --- display.c | 2 +- function.c | 1 - main.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/display.c b/display.c index 5feca41..b8b0e97 100644 --- a/display.c +++ b/display.c @@ -86,7 +86,7 @@ int getMaxSize (int size_box) SDL_Quit (); int minus_mod = (result-50) % size_box; printf("DIS :%d, size : %d ,mod : %d\n",result, size_box,minus_mod); - return (result - 50 - minus_mod); // margin + return (result - 50 - minus_mod); // margin } void initSDL (dis *display_user) diff --git a/function.c b/function.c index 0e560a0..f60ee8b 100644 --- a/function.c +++ b/function.c @@ -199,7 +199,6 @@ void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos, if (event.type == SDL_KEYDOWN) { input = event.key.keysym.scancode; - printf ("%c\n", input); switch (input) { case SDL_SCANCODE_ESCAPE: diff --git a/main.c b/main.c index 30a9261..c18bddc 100644 --- a/main.c +++ b/main.c @@ -7,7 +7,7 @@ #include #include -#define SIZE_PLAY 30 +#define SIZE_PLAY 26 int main () {