Skip to content

Commit

Permalink
Represent maze heads more compactly
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkeyMcMac committed Jun 2, 2021
1 parent a9acd2f commit 1791e64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/maze.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/* The list of heads: places that will be later incorporated into the maze. */
struct heads {
struct head {
short x, y;
unsigned char x, y;
} *arr;
size_t len, cap;
};
Expand Down
3 changes: 2 additions & 1 deletion src/maze.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ struct maze {
};

/* The maximum width and height in nodes, chosen so that width * height (of type
* int) can never overflow. */
* int) can never overflow, and so that x and y coordinates can each fit inside
* one byte. */
#define MAZE_WIDTH_NODES_MAX 90
#define MAZE_HEIGHT_NODES_MAX 90

Expand Down
2 changes: 1 addition & 1 deletion src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* The list of player sight reveal heads. */
struct heads {
struct head {
short x, y;
unsigned char x, y;
} *arr;
size_t len, cap;
};
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* The version of the program: */
#define VERSION "0.5.13"
#define VERSION "0.5.14"

0 comments on commit 1791e64

Please sign in to comment.