ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.h
(Generate patch)

Comparing deliantra/server/random_maps/random_map.h (file contents):
Revision 1.11 by root, Fri Jan 19 21:49:58 2007 UTC vs.
Revision 1.13 by root, Sat Jan 27 02:19:37 2007 UTC

57 57
58 int decoroptions; 58 int decoroptions;
59 int orientation; 59 int orientation;
60 int origin_y; 60 int origin_y;
61 int origin_x; 61 int origin_x;
62 int random_seed; 62 uint32_t random_seed;
63 uint64_t total_map_hp; 63 uint64_t total_map_hp;
64 int map_layout_style; 64 int map_layout_style;
65 int treasureoptions; 65 int treasureoptions;
66 int symmetry_used; 66 int symmetry_used;
67 67
118 SYMMETRY_X, 118 SYMMETRY_X,
119 SYMMETRY_Y, 119 SYMMETRY_Y,
120 SYMMETRY_XY, 120 SYMMETRY_XY,
121}; 121};
122 122
123// 12 has been experimentally :( determined ot be a lot more stable
124// than 11 or 10, leading to the assumption that something inherently
125// needs a minimum size of at least 12
123#define MIN_RANDOM_MAP_SIZE 10 126#define MIN_RANDOM_MAP_SIZE 12
124
125/* a macro to get a strongly centered random distribution,
126 from 0 to x, centered at x/2 */
127#define BC_RANDOM(x) ((int) ((RANDOM() % (x)+RANDOM()%(x)+RANDOM()%(x))/3.))
128 127
129#endif 128#endif
130 129

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines