(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
|
@ -73,7 +73,7 @@ union trdgenstr {
|
|||
struct shpstr shp;
|
||||
};
|
||||
|
||||
extern int trade_check_ok(int, struct trdstr *, union trdgenstr *);
|
||||
extern int trade_check_ok(struct trdstr *, union trdgenstr *);
|
||||
extern s_char *trade_nameof(struct trdstr *, union trdgenstr *);
|
||||
extern int trade_desc(struct trdstr *, union trdgenstr *);
|
||||
extern int trade_getitem(struct trdstr *, union trdgenstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue