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.12 by root, Fri Jan 19 22:24:10 2007 UTC vs.
Revision 1.13 by root, Sat Jan 27 02:19:37 2007 UTC

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