]> git.pond.sub.org Git - empserver/commit
(trad, set): Treat trade file slots with zero owner as unused, so that
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Aug 2004 15:22:50 +0000 (15:22 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Aug 2004 15:22:50 +0000 (15:22 +0000)
commite16e38dfabcc9d474d88a0bdbe3fbe0a5a7a4884
treed1fcd9fc3554a96473115d730e0b539324334765
parent133c1754f9002dfe56cf9b99d35ec77e2786febb
(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.
include/prototypes.h
include/trade.h
src/lib/commands/set.c
src/lib/commands/trad.c
src/lib/common/check.c
src/lib/subs/trdsub.c