From db6a942ae1e2f563734cb4620aeccd974de8ba85 Mon Sep 17 00:00:00 2001 From: fdai7172 Date: Wed, 8 Feb 2023 18:36:00 +0100 Subject: [PATCH] =?UTF-8?q?Werte=20f=C3=BCr=20ballposition=20global=20erst?= =?UTF-8?q?ellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index a8d20ba..6e238da 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -3,6 +3,9 @@ char field[23][29]; +int Ballx = -1; +int Bally = 27; + void buildBin(int width, int heigth){ field[width][heigth] = 'V'; field[width+1][heigth+1] = '\\'; @@ -55,8 +58,6 @@ int main() } void getStartPosition() { - int Ballx; - int Bally; while (Bally == -1) {