From fe8ff9c8b368a5ae97ca3dea9472c13afe8e8eae Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 30 Jul 2017 15:40:31 -0400 Subject: Track color only client-side --- torus.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'torus.h') diff --git a/torus.h b/torus.h index 968c9f6..3a98fe3 100644 --- a/torus.h +++ b/torus.h @@ -66,7 +66,6 @@ struct ServerMessage { enum ClientMessageType { CLIENT_MOVE, - CLIENT_COLOR, CLIENT_PUT, }; @@ -77,7 +76,9 @@ struct ClientMessage { int8_t dx; int8_t dy; } m; - uint8_t c; - char p; + struct { + uint8_t color; + char cell; + } p; } data; }; -- cgit 1.4.1