diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 6d88552..0a4803a 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -325,11 +325,11 @@ void sortScoreboard() playerlist[j].Points = playerPoints; numberOfLines = j; - sleep(100); + sleep(0.1); } 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++) { @@ -347,7 +347,7 @@ void sortScoreboard() for (int j = 0; j < numberOfLines; j++) { printf("%d. %s %s %d\n", j + 1, (j < 9) ? " " : " ", playerlist[j].Name, playerlist[j].Points); - sleep(500); + sleep(0.5); }