… | |
… | |
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 | |
39 | void |
39 | void |
40 | make_snake_layout (Layout maze, int options) |
40 | make_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 | |