Browse Source

refactoring: Klammern richtig gesetzt

main
David PC Saiz 2 years ago
parent
commit
5c5d821ecc
  1. 9
      src/Paper-Bin.c

9
src/Paper-Bin.c

@ -41,7 +41,8 @@ struct Player
}playerlist[11]; }playerlist[11];
void buildBin(int width, int heigth){
void buildBin(int width, int heigth)
{
field[width][heigth] = 'V'; field[width][heigth] = 'V';
field[width+1][heigth+1] = '\\'; field[width+1][heigth+1] = '\\';
field[width+2][heigth+2] = '\\'; field[width+2][heigth+2] = '\\';
@ -50,7 +51,8 @@ void buildBin(int width, int heigth){
field[width][heigth+1] = ' '; field[width][heigth+1] = ' ';
} }
void loadLevel(int lvlnum){
void loadLevel(int lvlnum)
{
clearField(); clearField();
ballX = -1; ballX = -1;
ballY = 27; ballY = 27;
@ -214,7 +216,8 @@ void clearField()
} }
} }
void Generatefield() {
void Generatefield()
{
system("clear"); system("clear");
buildBin(binX, binY); buildBin(binX, binY);

Loading…
Cancel
Save