Browse Source

Fehler behoben

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

3
src/Paper-Bin.c

@ -291,10 +291,11 @@ int checkBallPosition()
{ {
return 1; return 1;
} }
else if (BinY > Bally || field[Ballx][Bally - 1] == '_' || Ballx > fieldWidth || Ballx < 0)
else if (BinY + 1 >= Bally || field[Ballx][Bally - 1] == '_' || Ballx >= fieldWidth || Ballx <= 0)
{ {
return 2; return 2;
} }
return 0;
} }
void sortScoreboard() void sortScoreboard()

Loading…
Cancel
Save