about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-21 13:29:51 -0400
committerJune McEnroe <june@causal.agency>2018-08-21 13:29:51 -0400
commit642e1fe5360044ebe4207b1eb2817472fc6ddb36 (patch)
treeb7ab0dbb6eab1bb1c3c7624601162d2f61884d77 /torus.h
parentClean up Makefile (diff)
downloadtorus-642e1fe5360044ebe4207b1eb2817472fc6ddb36.tar.gz
torus-642e1fe5360044ebe4207b1eb2817472fc6ddb36.zip
Remove spawns
This reverts ce13621292bdfeafd7c6561c432a1d96deccbd3a and commits after
it.
Diffstat (limited to 'torus.h')
-rw-r--r--torus.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/torus.h b/torus.h
index b5a0235..93622ad 100644
--- a/torus.h
+++ b/torus.h
@@ -75,19 +75,8 @@ enum {
 };
 static const size_t TILES_SIZE = sizeof(struct Tile[TILE_ROWS][TILE_COLS]);
 
-static const uint32_t TILE_VOID_X = UINT32_MAX;
-static const uint32_t TILE_VOID_Y = UINT32_MAX;
-
-static const struct {
-	uint32_t tileX;
-	uint32_t tileY;
-} 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
-};
+static const uint32_t TILE_INIT_X = TILE_COLS / 2;
+static const uint32_t TILE_INIT_Y = TILE_ROWS / 2;
 
 enum {
 	MAP_ROWS = 11,
@@ -138,7 +127,6 @@ struct ClientMessage {
 	enum PACKED {
 		CLIENT_MOVE,
 		CLIENT_PUT,
-		CLIENT_SPAWN,
 		CLIENT_MAP,
 	} type;
 	union {
@@ -150,6 +138,5 @@ struct ClientMessage {
 			uint8_t color;
 			char cell;
 		} put;
-		uint8_t spawn;
 	};
 };