]> git.pond.sub.org Git - empserver/blobdiff - include/trade.h
Don't write garbage to unused trade destination in trade file
[empserver] / include / trade.h
index 72ebdbbb90b3d9261850fc1b4af76cb4f15c29b0..b7ed5e37f4c27b12569a1b5b7aa7cda782e9c0c6 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -44,6 +44,7 @@ struct trdstr {
     /* initial part must match struct empobj */
     signed ef_type: 8;
     unsigned trd_seqno: 12;
+    unsigned trd_generation: 12;
     int trd_uid;
     time_t trd_timestamp;
     natid trd_owner;
@@ -53,7 +54,7 @@ struct trdstr {
     long trd_price;
     int trd_maxbidder;
     time_t trd_markettime;
-    coord trd_x;
+    coord trd_x;               /* destination for teleporting trade */
     coord trd_y;
 };