Fix condition

fix-mingw
Nakidai 2023-11-01 19:21:51 +03:00
parent c31de323f0
commit b64ffdb82a
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ int main(int argc, char **argv)
player->direction = LEFT; break; player->direction = LEFT; break;
} }
if (playerDoTick(player, food) && player->score >= SIZE*SIZE - 1) if (playerDoTick(player, food) && player->score < SIZE*SIZE - 1)
food = generateFood(player); food = generateFood(player);
head_x = player->head->x; head_x = player->head->x;
head_y = player->head->y; head_y = player->head->y;