new_head          329 modules/games/gui_snake.c   unsigned short new_head;
new_head          335 modules/games/gui_snake.c     new_head = (snake_head+1)%SNAKE_MAX_LENGTH;
new_head          341 modules/games/gui_snake.c       snake[new_head][0] = new_cord;
new_head          342 modules/games/gui_snake.c       snake[new_head][1] = snake[snake_head][1];
new_head          347 modules/games/gui_snake.c       snake[new_head][0] = new_cord;
new_head          348 modules/games/gui_snake.c       snake[new_head][1] = snake[snake_head][1];
new_head          353 modules/games/gui_snake.c       snake[new_head][0] = snake[snake_head][0];
new_head          354 modules/games/gui_snake.c       snake[new_head][1] = new_cord;
new_head          358 modules/games/gui_snake.c       snake[new_head][0] = snake[snake_head][0];
new_head          359 modules/games/gui_snake.c       snake[new_head][1] = new_cord;
new_head          364 modules/games/gui_snake.c       if(snake[i][0] == snake[new_head][0] && snake[i][1] == snake[new_head][1]){
new_head          372 modules/games/gui_snake.c     if(ring[snake[new_head][0]][snake[new_head][1]] == 1){
new_head          373 modules/games/gui_snake.c       ring[snake[new_head][0]][snake[new_head][1]] = ' ';
new_head          377 modules/games/gui_snake.c       if((new_head+1)%SNAKE_MAX_LENGTH != snake_tail){
new_head          381 modules/games/gui_snake.c     }else if(ring[snake[new_head][0]][snake[new_head][1]] != ' '){
new_head          385 modules/games/gui_snake.c       if(direction == DIR_UP) draw_element(snake[new_head][0],snake[new_head][1],head,2);   //up
new_head          386 modules/games/gui_snake.c       if(direction == DIR_LEFT) draw_element(snake[new_head][0],snake[new_head][1],head,0);  //left
new_head          387 modules/games/gui_snake.c       if(direction == DIR_DOWN) draw_element(snake[new_head][0],snake[new_head][1],head,1);  //down
new_head          388 modules/games/gui_snake.c       if(direction == DIR_RIGHT) draw_element(snake[new_head][0],snake[new_head][1],head,3);  //right
new_head          392 modules/games/gui_snake.c       if(snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_UP) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,2);
new_head          393 modules/games/gui_snake.c       else if(snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_LEFT) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,0);
new_head          394 modules/games/gui_snake.c       else if(snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_UP) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,4);
new_head          395 modules/games/gui_snake.c       else if(snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_RIGHT) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,3);
new_head          396 modules/games/gui_snake.c       else if(snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_RIGHT) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,2);
new_head          397 modules/games/gui_snake.c       else if(snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_DOWN) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,0);
new_head          398 modules/games/gui_snake.c       else if(snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_LEFT) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,4);
new_head          399 modules/games/gui_snake.c       else if(snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_DOWN) draw_element(snake[snake_head][0],snake[snake_head][1],tail2,3);
new_head          410 modules/games/gui_snake.c     snake_head = new_head;