version 1.8 | | version 1.9 |
---|
| | |
for(i=1;i<xsize-1;i++) | | for(i=1;i<xsize-1;i++) |
for(j=1;j<ysize-1;j++) | | for(j=1;j<ysize-1;j++) |
maze[i][j]=0; | | maze[i][j]=0; |
maze[i/2][j/2]='>'; | | maze[(xsize-1)/2][(ysize-1)/2]='>'; |
maze[i/2][j/2+1]='<'; | | maze[(xsize-1)/2][(ysize-1)/2+1]='<'; |
return maze; | | return maze; |
} | | } |
| | |
| | |
for(i=1;i<xsize-1;i++) | | for(i=1;i<xsize-1;i++) |
for(j=1;j<ysize-1;j++) | | for(j=1;j<ysize-1;j++) |
maze[i][j]=0; | | maze[i][j]=0; |
maze[i/2][j/2]='>'; | | maze[(xsize-1)/2][(ysize-1)/2]='>'; |
maze[i/2][j/2+1]='<'; | | maze[(xsize-1)/2][(ysize-1)/2+1]='<'; |
free(Rooms); | | free(Rooms); |
return maze; | | return maze; |
} | | } |
| | |
break; | | break; |
default: | | default: |
making_circle = ((RANDOM()%3 == 0)? 1:0); | | making_circle = ((RANDOM()%3 == 0)? 1:0); |
| | break; |
| | } |
| | |
if(walk->sx < walk->sy) | | if(walk->sx < walk->sy) |
R = walk->sx/2; | | R = walk->sx/2; |
else | | else |
R = walk->sy/2; | | R = walk->sy/2; |
} | | |
| | |
/* enscribe a rectangle */ | | /* enscribe a rectangle */ |
for(i=walk->ax;i<walk->zx;i++) | | for(i=walk->ax;i<walk->zx;i++) |