From 9fc54aea83cce0184a1780ddcefd034113366fc5 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Thu, 9 Feb 2023 22:43:18 +0100 Subject: [PATCH] add documentation for sleep() --- src/input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input.c b/src/input.c index 839d503..882eda1 100644 --- a/src/input.c +++ b/src/input.c @@ -65,6 +65,9 @@ void getInput(){ } } +/** pauses the game until p is pressed again + * no parameters, no returns + */ pause(){ while(getch()!='p'){ sleep(0.10);