From f324a4524ba238a289c3dce3b224a1061b4ceb5a Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Sat, 3 Dec 2022 21:02:45 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20du=20chemin=20d'acc=C3=A8s=20vers?= =?UTF-8?q?=20les=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Retrait du "../" dans le chemain d'accès vers les images car après la compilation le fichier éxécutable final se trouve à la racine du dépot --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index 4ea7de2..f86cef3 100644 --- a/src/game.c +++ b/src/game.c @@ -69,7 +69,7 @@ int game(int colonnes, int lignes) { i=0; for (l = 0; l < lignes; l++) { for (c = 0; c < colonnes; c++) { - sprintf(file, "../img/cards/%dx%d/%d.png", colonnes, lignes, tab[i]); + sprintf(file, "img/cards/%dx%d/%d.png", colonnes, lignes, tab[i]); cards[l][c] = create_card( GAME_MARGIN_RIGHT + (((WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT)) - (case_max_dimensions * colonnes)) / 2) + (c * case_max_dimensions), GAME_MARGIN_TOP + (((WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM)) - (case_max_dimensions * lignes)) / 2) + (l * case_max_dimensions),