diff --git a/du4/snake.c b/du4/snake.c index 11fc4f1..d647f66 100644 --- a/du4/snake.c +++ b/du4/snake.c @@ -52,7 +52,7 @@ int is_snake(struct snake* snake,int x,int y){ struct snake* clanok = snake;//zase idem pozerat po clankoch ci som na hadovi v koordinatoch - while (clankoch != NULL) { // usetrim si podmienku ci nahodou nedostanem NULL hada + while (clanok != NULL) { // usetrim si podmienku ci nahodou nedostanem NULL hada if (clanok -> x == x && clanok -> y == y) { return 1; // mam vratit true/false, ale dostal som int funkciu, bool true false je aj tak iba jeden bit 1 alebo 0 }