From 7a04fe45bfde146147e5be31884dd9618d2062d4 Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Sun, 4 Dec 2022 12:06:09 +0100 Subject: [PATCH] Modification de la fonction fin() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La fonction fin() prend désormais en argument le temps écoulé lors de la partie en Microsecondes --- src/fin.c | 1 - src/game.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fin.c b/src/fin.c index a2cee61..fc5861c 100644 --- a/src/fin.c +++ b/src/fin.c @@ -14,7 +14,6 @@ int fin(unsigned long int timer) { EcrireTexte(550, 150, "You Win !", 2); char buf[100]; - timer = stop_timer(timer); unsigned int secondes = timer / DELTA; unsigned int minutes = 0; while (secondes >= 60) { diff --git a/src/game.c b/src/game.c index d584220..e652f4c 100644 --- a/src/game.c +++ b/src/game.c @@ -106,5 +106,5 @@ int game(int colonnes, int lignes) { } } - return fin(timer); + return fin(stop_timer(timer)); } \ No newline at end of file