diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index b47fac8..6d88552 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -291,10 +291,11 @@ int checkBallPosition() { 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 0; } void sortScoreboard()