Оновити 'cv9/snake.c'

This commit is contained in:
Kapliuk 2024-04-18 17:05:00 +00:00
parent 7a78071984
commit 129a0ae833

View File

@ -42,7 +42,7 @@ void free_snake(struct snake* sn){
int is_snake(struct snake* snake,int x,int y){ int is_snake(struct snake* snake,int x,int y){
if(snake == NULL) if(snake == NULL)
return NULL; return NULL;
if(x == snake->x && y == snake->y) if(snake->x == x && snake->y == y)
return 1; return 1;
return 0; return 0;
} }