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

Comparing deliantra/server/random_maps/maze_gen.C (file contents):
Revision 1.23 by root, Wed Jun 30 20:51:02 2010 UTC vs.
Revision 1.24 by root, Thu Jul 1 01:22:44 2010 UTC

169 169
170/* the outsize interface routine: accepts sizes, returns a char 170/* the outsize interface routine: accepts sizes, returns a char
171** maze. option is a flag for either a sparse or a full maze. Sparse 171** maze. option is a flag for either a sparse or a full maze. Sparse
172mazes have sizable rooms. option = 3=full, 2=braided, 1=sparse, 0=rooms.*/ 172mazes have sizable rooms. option = 3=full, 2=braided, 1=sparse, 0=rooms.*/
173void 173void
174maze_gen (Layout maze, int subtype) 174maze_gen (Layout &maze, int subtype)
175{ 175{
176 xsize = maze->w; 176 xsize = maze.w;
177 ysize = maze->h; 177 ysize = maze.h;
178 ::maze = maze; 178 ::maze = maze;
179 179
180 maze->clear (); 180 maze.clear ();
181 maze->border (); 181 maze.border ();
182 182
183 if (xsize < 4 || ysize < 4) 183 if (xsize < 4 || ysize < 4)
184 return; 184 return;
185 185
186 seeds.reset (xsize * ysize); 186 seeds.reset (xsize * ysize);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines