From 5802e82c5a77ad7be9352d346187d41470f80d1b Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 20:41:05 +0100 Subject: [PATCH] Wind wird auf den Ball Ball gerechnet --- src/Paper-Bin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 00c2134..27b4d76 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -227,6 +227,10 @@ void Generatefield() { } } + if (lvlnumber > 6 && windIntervall % 2 == 0) + { + windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); + } } void addScoreboard()