Update 'cv9/snake.c'
This commit is contained in:
parent
72fb039acd
commit
574604a069
@ -37,7 +37,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){
|
||||||
struct snake* this = snake;
|
struct snake* this = snake;
|
||||||
while (this->next != NULL){
|
while (this != NULL){
|
||||||
|
|
||||||
if(this->x == x && this->y == y){
|
if(this->x == x && this->y == y){
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user