From 7a93be6d29e73d28bef42383a2a891ab62ba6e13 Mon Sep 17 00:00:00 2001 From: MuedeHydra Date: Fri, 13 Dec 2024 01:41:50 +0100 Subject: [PATCH] bugfix --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 5e9b083..647a519 100644 --- a/src/main.c +++ b/src/main.c @@ -247,12 +247,13 @@ void run_programm(int programm, int width, int height, bool *used){ case 9: return_code = test_gruppe_programmname(); break; } + // ist dazu da um "\n" aus dem buffer zu entfernen! + getchar(); + switch (return_code) { case 10: used[programm] = 1; break; case 20: print_game_over(width, height); break; } - // ist dazu da um "\n" aus dem buffer zu entfernen! - getchar(); } void speed(int width, int height, int *start_time, bool *used){