From fbf9832889d5dd0ca3ace63b199b132e27abb052 Mon Sep 17 00:00:00 2001 From: fdai7172 Date: Wed, 8 Feb 2023 20:20:35 +0100 Subject: [PATCH] Setzt die Punkte wieder auf 0 --- src/Paper-Bin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index d0c1f90..c17396e 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -195,6 +195,10 @@ void clearField() void Generatefield() { system("clear"); buildBin(BinX, BinY); + + if (ScorePoints < 0) + ScorePoints = 0; + } void addScoreboard()