Mercurial > hg > early-roguelike
comparison xrogue/maze.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | f54901b9c39b |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
19 struct cell { | 19 struct cell { |
20 char y_pos; | 20 char y_pos; |
21 char x_pos; | 21 char x_pos; |
22 }; | 22 }; |
23 struct b_cellscells { | 23 struct b_cellscells { |
24 char num_pos; /* number of frontier cells next to you */ | 24 unsigned char num_pos; /* number of frontier cells next to you */ |
25 struct cell conn[4]; /* the y,x position of above cell */ | 25 struct cell conn[4]; /* the y,x position of above cell */ |
26 } b_cells; | 26 } b_cells; |
27 | 27 |
28 static char *maze_frontier, *maze_bits; | 28 static char *maze_frontier, *maze_bits; |
29 static int maze_lines, maze_cols; | 29 static int maze_lines, maze_cols; |