/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include "types.h"
struct trdstr {
+ /* initial part must match struct empobj */
short ef_type;
natid trd_owner;
short trd_uid;
- char trd_type;
+ /* end of part matching struct empobj */
+ short trd_type;
short trd_unitid;
long trd_price;
int trd_maxbidder;
#define gettrade(n, p) ef_read(EF_TRADE, (n), (p))
#define puttrade(n, p) ef_write(EF_TRADE, (n), (p))
-#define gettradep(n) (struct trdstr *)ef_ptr(EF_TRADE, (n))
+#define gettradep(n) ((struct trdstr *)ef_ptr(EF_TRADE, (n)))
#endif