version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_random_map_c = | | * static char *rcsid_random_map_c = |
* "$Id: random_map.c,v 1.10 2000/12/18 06:15:05 peterm Exp $"; | | * "$Id: random_map.c,v 1.11 2000/12/20 18:32:55 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* rotate the layout randomly */ | | /* rotate the layout randomly */ |
layout=rotate_layout(layout,RANDOM()%4,RP); | | layout=rotate_layout(layout,RANDOM()%4,RP); |
{ int i,j; | | /* { int i,j; |
for(i=0;i<RP->Xsize;i++) { | | for(i=0;i<RP->Xsize;i++) { |
for(j=0;j<RP->Ysize;j++) { | | for(j=0;j<RP->Ysize;j++) { |
if(layout[i][j]==0) layout[i][j]=' '; | | if(layout[i][j]==0) layout[i][j]=' '; |
| | |
if(layout[i][j]==' ') layout[i][j]=0; | | if(layout[i][j]==' ') layout[i][j]=0; |
} | | } |
printf("\n"); | | printf("\n"); |
}} | | }}*/ |
/* allocate the map and set the floor */ | | /* allocate the map and set the floor */ |
theMap = make_map_floor(layout,RP->floorstyle,RP); | | theMap = make_map_floor(layout,RP->floorstyle,RP); |
| | |