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

Comparing deliantra/server/random_maps/snake.C (file contents):
Revision 1.11 by root, Sat Nov 7 18:32:45 2009 UTC vs.
Revision 1.12 by root, Thu Jul 1 01:22:44 2010 UTC

35#include <global.h> 35#include <global.h>
36#include "random_map.h" 36#include "random_map.h"
37#include "rproto.h" 37#include "rproto.h"
38 38
39void 39void
40make_snake_layout (Layout maze, int options) 40make_snake_layout (Layout &maze, int options)
41{ 41{
42 int i, j; 42 int i, j;
43 43
44 maze->clear (); 44 maze.clear ();
45 maze->border (); 45 maze.border ();
46 46
47 int xsize = maze->w; 47 int xsize = maze.w;
48 int ysize = maze->h; 48 int ysize = maze.h;
49 49
50 /* Bail out if the size is too small to make a snake. */ 50 /* Bail out if the size is too small to make a snake. */
51 if (xsize < 8 || ysize < 8) 51 if (xsize < 8 || ysize < 8)
52 return; 52 return;
53 53

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines