From 316ca5f96a9ac9a76feb4919a286a8a9f422eae4 Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Thu, 9 Feb 2023 00:06:24 +0100 Subject: [PATCH] refactoring: Kommentare geschrieben --- src/Paper-Bin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index f4f6b59..ae0eae7 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -340,8 +340,9 @@ void sortScoreboard() sleep(0.1); } + //Spielerliste mithilfe einer Hilfsveriable sortieren, um sie danach direkt ausgeben zu koennen struct Player temp; - for (int i = 0; i < numberOfLines; i++) + for (int i = 0; i < numberOfLines; i++) { for (int j = 0; j < (numberOfLines - i); j++) {