Extend the common header of struct empobj to include uid
Make sure all members of unit empobj_storage share uid in addition to ef_type. Add matching uid member to struct gamestr, struct natstr and struct sctstr, and set them. Swap struct empobj members uid and own to make that easier, and update struct comstr, struct lndstr, struct lonstr, struct loststr, struct nwsstr, struct nukstr, struct plnstr, struct realmstr, struct shpstr, struct trdstr, struct trtstr accordingly. Note that the uid isn't properly set for struct nwsstr, struct lonstr, struct trdstr, struct comstr and struct loststr. To be fixed.
This commit is contained in:
parent
aef790f7f3
commit
49780e2c6c
19 changed files with 32 additions and 17 deletions
|
@ -41,9 +41,11 @@
|
|||
#define SECS_PER_DAY (60*60*24)
|
||||
|
||||
struct lonstr {
|
||||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
natid l_loner; /* loan shark */
|
||||
short l_uid;
|
||||
/* end of part matching struct empobj */
|
||||
natid l_loner; /* loan shark */
|
||||
natid l_lonee; /* sucker */
|
||||
signed char l_status; /* loan status */
|
||||
short l_sell; /* pointer to trade file (unused) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue