Fix snakeSetHeadPos()

- Head position will be updated in tail[][] array
This commit is contained in:
Hanse-14 2023-12-07 16:16:29 +01:00
parent ae7469f291
commit 655657ab43

@ -81,6 +81,8 @@ void snakeSetHeadPos(int xPos, int yPos)
{
game.snake.headX = xPos;
game.snake.headY = yPos;
game.snake.tail[0][0] = xPos;
game.snake.tail[0][1] = yPos;
return;
}