]> git.pond.sub.org Git - empserver/blobdiff - include/commodity.h
Store uids as int to support more sectors and units
[empserver] / include / commodity.h
index 3877b6b4d283da519410c25d6edc6992a7c87700..a36d9b45dd8d1a161cdd71ca9d66b67330116b0d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, 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 @@
  *
  *  commodity.h: Definitions for buy/market/sell commands in a time delay
  *               market
- * 
+ *
  *  Known contributors to this file:
  *     Pat Loney, 1992
  *     Steve McClure, 1996
 #ifndef COMMODITY_H
 #define COMMODITY_H
 
+#include <time.h>
 #include "types.h"
 #include "item.h"
 
 struct comstr {
+    /* initial part must match struct empobj */
     short ef_type;
+    int com_uid;
+    unsigned com_seqno;
+    time_t com_timestamp;
     natid com_owner;
-    short com_uid;
+    /* end of part matching struct empobj */
     i_type com_type;
     int com_amount;
     float com_price;