]> git.pond.sub.org Git - empserver/blobdiff - include/trade.h
Store sequence numbers more compactly
[empserver] / include / trade.h
index 307f990b4a40fa4dc1f0ba8e941f20e006224d1b..72ebdbbb90b3d9261850fc1b4af76cb4f15c29b0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -27,7 +27,7 @@
  *
  *  trade.h: Definitions for trading units/ships/planes in a time delay
  *           system
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare
  *     Pat Loney, 1992
 
 struct trdstr {
     /* initial part must match struct empobj */
-    short ef_type;
-    short trd_uid;
+    signed ef_type: 8;
+    unsigned trd_seqno: 12;
+    int trd_uid;
     time_t trd_timestamp;
     natid trd_owner;
     /* end of part matching struct empobj */
     short trd_type;
-    short trd_unitid;
+    int trd_unitid;
     long trd_price;
     int trd_maxbidder;
     time_t trd_markettime;