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
commit6e881bc0c88ca5e1411f0e0270d0a84c3e9566b3 (patch)
treea31221338611d8b329cb11067f93dc928438f391 /torus.h
parentClean up Makefile (diff)
downloadtorus-6e881bc0c88ca5e1411f0e0270d0a84c3e9566b3.tar.gz
torus-6e881bc0c88ca5e1411f0e0270d0a84c3e9566b3.zip
Remove spawns
This reverts 66761cd30ee1da5b820c89c38fac6caf42fbe715 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 775df3c..26204f3 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;
 	};
 };