From 844c6e5044262d8ee68506512656b6bf7d566f95 Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Wed, 8 Feb 2023 18:42:00 +0100 Subject: [PATCH] Bedingung in getStartPosition korrigiert --- src/Paper-Bin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 6e238da..b666a81 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -51,6 +51,8 @@ int main() printf("|"); printf("\n"); } + getStartPosition(); + sleep(1); } @@ -59,7 +61,7 @@ int main() void getStartPosition() { - while (Bally == -1) + while (ballX == -1) { for (int i = 2, j = 0; i <= 20; i += 2, j++) {