about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-07-30 15:40:31 -0400
committerJune McEnroe <programble@gmail.com>2017-07-30 15:40:31 -0400
commit2093f255cd2874b6d9fb2545b28df074acbcc72e (patch)
tree93554e45454a71a8c51c7131266d465ec66a8d27 /torus.h
parentAdd ostensible support for background colors (diff)
downloadtorus-2093f255cd2874b6d9fb2545b28df074acbcc72e.tar.gz
torus-2093f255cd2874b6d9fb2545b28df074acbcc72e.zip
Track color only client-side
Diffstat (limited to '')
-rw-r--r--torus.h7
1 files changed, 4 insertions, 3 deletions
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;
 };