]> git.pond.sub.org Git - empserver/blobdiff - include/game.h
Store sequence numbers more compactly
[empserver] / include / game.h
index 5d6bec91a006849426dd562405fec7e320d5fe84..a58d1bdb884b3e35a7b50c51d6567bc62d7d1e88 100644 (file)
@@ -28,7 +28,7 @@
  *  game.h: The game file
  *
  *  Known contributors to this file:
- *       Markus Armbruster, 2007-2008
+ *       Markus Armbruster, 2007-2009
  */
 
 #ifndef GAME_H
@@ -38,9 +38,9 @@
 
 struct gamestr {
     /* initial part must match struct empobj */
-    short ef_type;
-    short game_uid;
-    unsigned game_seqno;
+    signed ef_type: 8;
+    unsigned game_seqno: 12;
+    int game_uid;
     time_t game_timestamp;
     /* end of part matching struct empobj */
     char game_upd_disable;     /* updates disabled? */