about summary refs log tree commit diff homepage
path: root/client.c
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 /client.c
parentClean up Makefile (diff)
downloadtorus-6e881bc0c88ca5e1411f0e0270d0a84c3e9566b3.tar.gz
torus-6e881bc0c88ca5e1411f0e0270d0a84c3e9566b3.zip
Remove spawns
This reverts 66761cd30ee1da5b820c89c38fac6caf42fbe715 and commits after
it.
Diffstat (limited to 'client.c')
-rw-r--r--client.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/client.c b/client.c
index b09e5b0..6fb2483 100644
--- a/client.c
+++ b/client.c
@@ -58,14 +58,6 @@ static void clientPut(uint8_t color, char cell) {
 	clientMessage(msg);
 }
 
-static void clientSpawn(uint8_t spawn) {
-	struct ClientMessage msg = {
-		.type = CLIENT_SPAWN,
-		.spawn = spawn,
-	};
-	clientMessage(msg);
-}
-
 static void clientMap(void) {
 	struct ClientMessage msg = { .type = CLIENT_MAP };
 	clientMessage(msg);
@@ -162,13 +154,6 @@ static void inputNormal(int c) {
 		break; case ESC: input.mode = MODE_NORMAL;
 
 		break; case 'q': endwin(); exit(EX_OK);
-		break; case 'Q': {
-			if ((input.color & 0x07) < ARRAY_LEN(SPAWNS)) {
-				clientSpawn(input.color & 0x07);
-			} else {
-				clientSpawn(0);
-			}
-		}
 		break; case 'm': clientMap();
 
 		break; case 'i': insertMode(1, 0);