version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_random_map_c = | | * static char *rcsid_random_map_c = |
* "$Id: random_map.c,v 1.11 2000/12/20 18:32:55 peterm Exp $"; | | * "$Id: random_map.c,v 1.12 2001/01/12 08:25:28 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
maze = map_gen_onion(RP->Xsize,RP->Ysize,RP->layoutoptions1,RP->layoutoptions2); | | maze = map_gen_onion(RP->Xsize,RP->Ysize,RP->layoutoptions1,RP->layoutoptions2); |
RP->map_layout_style = ONION_LAYOUT; | | RP->map_layout_style = ONION_LAYOUT; |
if(!(RANDOM()%3)&& !(RP->layoutoptions1 & OPT_WALLS_ONLY)) roomify_layout(maze,RP); | | if(!(RANDOM()%3)&& !(RP->layoutoptions1 & OPT_WALLS_ONLY)) roomify_layout(maze,RP); |
| | break; |
case 2: | | case 2: |
maze = map_gen_spiral(RP->Xsize,RP->Ysize,RP->layoutoptions1); | | maze = map_gen_spiral(RP->Xsize,RP->Ysize,RP->layoutoptions1); |
RP->map_layout_style = SPIRAL_LAYOUT; | | RP->map_layout_style = SPIRAL_LAYOUT; |