This commit is contained in:
Oleksandr Vyshniakov 2025-04-08 19:52:08 +02:00
parent 44fa14ab8a
commit c4b92debdf
2 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ struct snake* remove_snake(struct snake* snake) {
int is_snake(struct snake* snake, int x, int y) { int is_snake(struct snake* snake, int x, int y) {
struct snake* current = snake; struct snake* current = snake;
while () { while (current !=NULL) {
if ((current->x==x) && (current->y==y)) { if ((current->x==x) && (current->y==y)) {
return 1; return 1;
} }

Binary file not shown.