domaca_uloha_7
This commit is contained in:
		
							parent
							
								
									1fb1da956b
								
							
						
					
					
						commit
						04a2781b0a
					
				@ -7,9 +7,9 @@ struct snake* add_snake(struct snake* snake,int x,int y){
 | 
			
		||||
	novyZaciatok->y = y;
 | 
			
		||||
	
 | 
			
		||||
	if (snake != NULL) {
 | 
			
		||||
		snake->next = novyZaciatok;
 | 
			
		||||
		novyZaciatok->next = snake;
 | 
			
		||||
	} else {
 | 
			
		||||
		snake->next = NULL;
 | 
			
		||||
		novyZaciatok->next = NULL;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
    return novyZaciatok;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user