summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-30 15:40:31 -0400
committerJune McEnroe <june@causal.agency>2017-07-30 15:40:31 -0400
commitfe8ff9c8b368a5ae97ca3dea9472c13afe8e8eae (patch)
tree83b314142a05260c042819b65ba698dea6fbcd28 /torus.h
parentAdd ostensible support for background colors (diff)
downloadtorus-fe8ff9c8b368a5ae97ca3dea9472c13afe8e8eae.tar.gz
torus-fe8ff9c8b368a5ae97ca3dea9472c13afe8e8eae.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;
 };