diff --git a/src/main.c b/src/main.c index 380054c..3e34605 100644 --- a/src/main.c +++ b/src/main.c @@ -68,7 +68,7 @@ int main(int argc, char **argv) player->direction = LEFT; break; } - if (playerDoTick(player, food)) + if (playerDoTick(player, food) && player->score >= SIZE*SIZE - 1) food = generateFood(player); head_x = player->head->x; head_y = player->head->y;