--- deliantra/server/random_maps/random_map.h 2007/01/06 14:42:30 1.9 +++ deliantra/server/random_maps/random_map.h 2007/01/27 02:19:37 1.13 @@ -40,9 +40,9 @@ char exitstyle[512]; shstr this_map; char exit_on_final_map[512]; + char *custom; - int Xsize; - int Ysize; + int xsize, ysize; int expand2x; int layoutoptions1; int layoutoptions2; @@ -59,13 +59,17 @@ int orientation; int origin_y; int origin_x; - int random_seed; + uint32_t random_seed; uint64_t total_map_hp; int map_layout_style; int treasureoptions; int symmetry_used; struct region *region; + + // "private", adjusted sizes + int Xsize; + int Ysize; }; enum { @@ -116,11 +120,10 @@ SYMMETRY_XY, }; -#define MIN_RANDOM_MAP_SIZE 10 - -/* a macro to get a strongly centered random distribution, - from 0 to x, centered at x/2 */ -#define BC_RANDOM(x) ((int) ((RANDOM() % (x)+RANDOM()%(x)+RANDOM()%(x))/3.)) +// 12 has been experimentally :( determined ot be a lot more stable +// than 11 or 10, leading to the assumption that something inherently +// needs a minimum size of at least 12 +#define MIN_RANDOM_MAP_SIZE 12 #endif