version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: square_spiral.c,v 1.8 2002/10/08 06:38:25 mwedel Exp $"; | | * "$Id: square_spiral.c,v 1.9 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
char **maze = map_gen_onion(xsize,ysize,OPT_CENTERED | OPT_NO_DOORS,0); | | char **maze = map_gen_onion(xsize,ysize,OPT_CENTERED | OPT_NO_DOORS,0); |
| | |
/* find the layout center. */ | | /* find the layout center. */ |
| | cx = 0; cy = 0; |
for(i=0;i<xsize;i++) | | for(i=0;i<xsize;i++) |
for(j=0;j<ysize;j++) { | | for(j=0;j<ysize;j++) { |
if(maze[i][j]=='C' ) { | | if(maze[i][j]=='C' ) { |