(trad, set): Treat trade file slots with zero owner as unused, so that
freshly extended trade file makes sense. When set() removes a lot, simply zero the slot. (set): Initialize trd_uid. (trade_check_ok): Use check_land_ok() & friends instead of doing it by hand, but wrong. This fixes bying planes and land units loaded on ships that moved after loading. (check_trade_ok): New. (trade_check_ok): Use it. Remove unused argument lot. Callers changed.
This commit is contained in:
parent
133c1754f9
commit
e16e38dfab
6 changed files with 52 additions and 47 deletions
|
@ -111,6 +111,7 @@ extern int check_nuke_ok(struct nukstr *);
|
|||
extern int check_plane_ok(struct plnstr *);
|
||||
extern int check_comm_ok(struct comstr *);
|
||||
extern int check_loan_ok(struct lonstr *);
|
||||
extern int check_trade_ok(struct trdstr *);
|
||||
/* fsize.c */
|
||||
extern int fsize(int);
|
||||
extern int blksize(int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue