--- deliantra/server/random_maps/square_spiral.C 2008/04/11 21:09:53 1.12 +++ deliantra/server/random_maps/square_spiral.C 2008/04/14 22:41:17 1.13 @@ -62,15 +62,18 @@ /* cx and cy should now be the top-right corner of the onion layer */ } -Maze -make_square_spiral_layout (int xsize, int ysize, int options) +void +make_square_spiral_layout (Maze maze, int options) { int i, j; int cx, cy; int tx, ty; /* generate and allocate a doorless, centered onion */ - Maze maze = map_gen_onion (xsize, ysize, RMOPT_CENTERED | RMOPT_NO_DOORS, 0); + map_gen_onion (maze, RMOPT_CENTERED | RMOPT_NO_DOORS, 0); + + int xsize = maze->w; + int ysize = maze->h; /* find the layout center. */ cx = 0; @@ -129,7 +132,5 @@ maze[cx][cy] = '<'; maze[xsize - 2][1] = '>'; } - - return maze; }