From 9400301fe4ab5162390763e468773448a793488d Mon Sep 17 00:00:00 2001 From: fdai7172 Date: Wed, 8 Feb 2023 21:41:32 +0100 Subject: [PATCH] =?UTF-8?q?Deklaration=20von=20CheckBallPosition=20hinzuge?= =?UTF-8?q?f=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 69f2fc3..16b3056 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -25,6 +25,7 @@ void generateField(); void sortScoreboard(); void buildBin(int width, int height); void getStartPosition(); +int checkBallPosition(); struct Player @@ -259,7 +260,7 @@ void Generatefield() { } if (lvlnumber > 6 && windIntervall % 2 == 0) { - windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); + windForce < 0 ? (Ballx -= windForce * -1) : (Ballx += windForce); } windIntervall++;