diff options
author | June McEnroe <programble@gmail.com> | 2018-03-05 12:55:18 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-03-05 12:55:18 -0500 |
commit | 8a4618a20339ed233cc5e5a6a4e32c4344f97c1c (patch) | |
tree | f25e8e4107e43d366a47ada85ff4831a39d62d86 /torus.h | |
parent | Rename Tile timestamps {create,modify,access}Time (diff) | |
download | torus-8a4618a20339ed233cc5e5a6a4e32c4344f97c1c.tar.gz torus-8a4618a20339ed233cc5e5a6a4e32c4344f97c1c.zip |
Clean up spawn constants
Diffstat (limited to '')
-rw-r--r-- | torus.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/torus.h b/torus.h index f2588a4..e9fa2d1 100644 --- a/torus.h +++ b/torus.h @@ -68,18 +68,20 @@ static_assert(2016 == offsetof(struct Tile, colors), "stable colors offset"); #define TILE_COLS (512) #define TILES_SIZE (sizeof(struct Tile[TILE_ROWS][TILE_COLS])) +#define TILE_VOID_X UINT32_MAX +#define TILE_VOID_Y UINT32_MAX + static const struct { uint32_t tileX; uint32_t tileY; -} SPAWN[] = { +} SPAWNS[] = { { 0, 0 }, { TILE_COLS * 3 / 4, TILE_ROWS * 3 / 4 }, // NW { TILE_COLS * 1 / 4, TILE_ROWS * 3 / 4 }, // NE { TILE_COLS * 1 / 4, TILE_ROWS * 1 / 4 }, // SE { TILE_COLS * 3 / 4, TILE_ROWS * 1 / 4 }, // SW }; - -#define SPAWN_COUNT (sizeof(SPAWN) / sizeof(SPAWN[0])) +#define SPAWNS_LEN (sizeof(SPAWNS) / sizeof(SPAWNS[0])) struct ServerMessage { enum PACKED { |