From 5c5d821eccdc3b472abb27ee4b8d5707d2b20531 Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 22:55:51 +0100 Subject: [PATCH] refactoring: Klammern richtig gesetzt --- src/Paper-Bin.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 0eb0c4f..8cd2f77 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -41,7 +41,8 @@ struct Player }playerlist[11]; -void buildBin(int width, int heigth){ +void buildBin(int width, int heigth) +{ field[width][heigth] = 'V'; field[width+1][heigth+1] = '\\'; field[width+2][heigth+2] = '\\'; @@ -50,7 +51,8 @@ void buildBin(int width, int heigth){ field[width][heigth+1] = ' '; } -void loadLevel(int lvlnum){ +void loadLevel(int lvlnum) +{ clearField(); ballX = -1; ballY = 27; @@ -214,7 +216,8 @@ void clearField() } } -void Generatefield() { +void Generatefield() +{ system("clear"); buildBin(binX, binY);