This commit is contained in:
Valentino Orlandi 2022-11-28 00:06:10 +01:00
parent a191ea672b
commit 4453038675
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void Food::spawn( Snake& snake, Snake& snake_ )
if ( x < 16 && y < 16 ) {
// check the tile is empty
if ( x != this->x && y != this->y ) {
if ( !(snake.inTile( x, y ) || snake_.inTile( x, y )) ) {
if ( !(snake.inTile( x, y, false ) || snake_.inTile( x, y, false )) ) {
break;
}
}