Оновити 'cv9/snake.c'
This commit is contained in:
parent
7a78071984
commit
129a0ae833
@ -42,7 +42,7 @@ void free_snake(struct snake* sn){
|
||||
int is_snake(struct snake* snake,int x,int y){
|
||||
if(snake == NULL)
|
||||
return NULL;
|
||||
if(x == snake->x && y == snake->y)
|
||||
if(snake->x == x && snake->y == y)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user