]> git.pond.sub.org Git - empserver/blobdiff - include/ship.h
Store sequence numbers more compactly
[empserver] / include / ship.h
index a0b325d38e1b46805933ccf87eace31d4f9e6982..23cefa1f79e7eca718c2c150f3dd57d301fb122e 100644 (file)
@@ -63,9 +63,9 @@
 
 struct shpstr {
     /* initial part must match struct empobj */
-    short ef_type;
+    signed ef_type: 8;
+    unsigned shp_seqno: 12;
     int shp_uid;               /* unit it (ship #) */
-    unsigned shp_seqno;
     time_t shp_timestamp;      /* Last time this ship was touched. */
     natid shp_own;             /* owner's country num */
     coord shp_x;               /* x location in abs coords */