version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: square_spiral.c,v 1.6 2002/09/06 04:44:46 mwedel Exp $"; | | * "$Id: square_spiral.c,v 1.7 2002/09/13 06:31:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
maze[tx-1][ty]='D';/* make a doorway out of this layer */ | | maze[tx-1][ty]='D';/* make a doorway out of this layer */ |
| | |
/* walk left until we find the top-left corner */ | | /* walk left until we find the top-left corner */ |
while((tx>0) && maze[tx-1][ty]) tx--; | | while((tx>1) && maze[tx-1][ty]) tx--; |
| | |
make_wall(maze,tx-1,ty,0); /* make a horizontal wall with a door */ | | make_wall(maze,tx-1,ty,0); /* make a horizontal wall with a door */ |
| | |