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.30 by root, Wed Jun 30 23:03:40 2010 UTC vs.
Revision 1.31 by root, Wed Jun 30 23:15:56 2010 UTC

140// 12 has been experimentally :( determined ot be a lot more stable 140// 12 has been experimentally :( determined ot be a lot more stable
141// than 11 or 10, leading to the assumption that something inherently 141// than 11 or 10, leading to the assumption that something inherently
142// needs a minimum size of at least 12 142// needs a minimum size of at least 12
143#define MIN_RANDOM_MAP_SIZE 12 143#define MIN_RANDOM_MAP_SIZE 12
144 144
145// we often use signed chars for coordinates (and U8 for distances)
146#define MAX_RANDOM_MAP_SIZE 120
147
145// reference 148// reference
146// 149//
147// \0 floor only 150// \0 floor only
148// # wall 151// # wall
149// D door 152// D door
192 ::swap (layout.w , w ); 195 ::swap (layout.w , w );
193 ::swap (layout.h , h ); 196 ::swap (layout.h , h );
194 } 197 }
195}; 198};
196 199
197// basically a layoutdata point - do not use in new code 200// basically a layoutdata pointer - do not use in new code
198struct Layout 201struct Layout
199{ 202{
200 LayoutData *ptr; 203 LayoutData *ptr;
201 204
202 Layout () 205 Layout ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines