From fe2b1f22e5c5c9ee1eda0a8da89a22fa3e929144 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 02:01:30 +0100 Subject: [PATCH] refactoring:add return type to pause to prevent warning in console --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 2cfd6e4..a16a889 100644 --- a/src/input.c +++ b/src/input.c @@ -102,7 +102,7 @@ char getTInput(char key){ /** pauses the game until p is pressed again * no parameters, no returns */ -pause(){ +void pause(){ while(getch()!='p'){ sleep(0.10); }