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);