Lines Matching refs:pathi
121 static int state = 1, pathi = 0; variable
515 pathi = 0; in begin_solve_maze()
516 path[pathi].x = end_x; in begin_solve_maze()
517 path[pathi].y = end_y; in begin_solve_maze()
518 path[pathi].dir = -1; in begin_solve_maze()
528 if (++path[pathi].dir >= 4) { in solve_maze()
529 pathi--; in solve_maze()
530 …draw_solid_square((int) (path[pathi].x), (int) (path[pathi].y), (int) (path[pathi].dir), hDC, hBru… in solve_maze()
533 else if (!(maze[path[pathi].x][path[pathi].y] & (WALL_TOP >> path[pathi].dir)) && in solve_maze()
534 ((pathi == 0) || ((path[pathi].dir != (int) (path[pathi - 1].dir + 2) % 4)))) { in solve_maze()
535 enter_square(pathi, hDC, hBrushLiving); in solve_maze()
536 pathi++; in solve_maze()
537 if (maze[path[pathi].x][path[pathi].y] & START_SQUARE) { in solve_maze()