lol
This commit is contained in:
		
							parent
							
								
									70975ce682
								
							
						
					
					
						commit
						6e8079aba0
					
				| @ -15,9 +15,12 @@ struct snake* add_snake(struct snake* snake,int x,int y){ | ||||
| } | ||||
| 
 | ||||
| struct snake* remove_snake(struct snake* snake){ | ||||
|     if(!snake->next&&!snake) | ||||
|     if(!snake) | ||||
|         return NULL;  | ||||
| 
 | ||||
|     if(!snake->next){ | ||||
|         free(snake); | ||||
|         return NULL;  | ||||
|     } | ||||
|     struct snake* last = snake; | ||||
|     struct snake* secondLast = snake;  | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user