--- deliantra/server/random_maps/random_map.h 2007/01/19 21:49:58 1.11 +++ deliantra/server/random_maps/random_map.h 2007/01/27 02:19:37 1.13 @@ -59,7 +59,7 @@ 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; @@ -120,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