version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_random_map_c = | | * static char *rcsid_random_map_c = |
* "$Id: random_map.c,v 1.4 2000/06/07 17:48:18 cvs Exp $"; | | * "$Id: random_map.c,v 1.5 2000/06/08 00:34:33 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if(strstr(layoutstyle,"onion")) { | | if(strstr(layoutstyle,"onion")) { |
maze = map_gen_onion(Xsize,Ysize,layoutoptions1,layoutoptions2); | | maze = map_gen_onion(Xsize,Ysize,layoutoptions1,layoutoptions2); |
if(!(RANDOM()%3)) roomify_layout(maze); | | if(!(RANDOM()%3)&& !(layoutoptions1 & OPT_WALLS_ONLY)) roomify_layout(maze); |
} | | } |
| | |
if(strstr(layoutstyle,"maze")) { | | if(strstr(layoutstyle,"maze")) { |
| | |
break; | | break; |
case 1: | | case 1: |
maze = map_gen_onion(Xsize,Ysize,layoutoptions1,layoutoptions2); | | maze = map_gen_onion(Xsize,Ysize,layoutoptions1,layoutoptions2); |
if(!(RANDOM()%3)) roomify_layout(maze); | | if(!(RANDOM()%3)&& !(layoutoptions1 & OPT_WALLS_ONLY)) roomify_layout(maze); |
break; | | break; |
} | | } |
| | |