]> git.pond.sub.org Git - empserver/commit
Sectors need space for items, deliveries and distribution thresholds.
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 3 Mar 2004 16:54:22 +0000 (16:54 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 3 Mar 2004 16:54:22 +0000 (16:54 +0000)
commiteccc5cb7d7b3595e5a2e6407fc29711722de5b2e
tree9802feda7a2f9377f4df9f6c28019e34524019a7
parentba86513b0116135b52bb717e5e2400354ef02866
Sectors need space for items, deliveries and distribution thresholds.
To save space, the ancients invented `variables': a collection of
key-value pairs, missing means zero value, space for `enough' keys.
This complicates the code, as assigning to a `variable' can fail for
lack of space.  Over time, `enough' increased, and for quite some time
now `variables' have been *wasting* space.  This changeset replaces
them, except in struct mchrstr, struct lchrstr and struct pchrstr,
where they are read-only, and will be replaced later.  It is only a
first step; further cleanup is required.  To simplify and minimize
this necessarily huge changeset, the new item[] arrays have an unused
slot 0, and the old variable types V_CIVIL, ... are still defined, but
must have the same values as the item types I_CIVIL, ...
86 files changed:
include/file.h
include/land.h
include/prototypes.h
include/sect.h
include/ship.h
include/var.h
src/lib/commands/add.c
src/lib/commands/anti.c
src/lib/commands/bomb.c
src/lib/commands/buil.c
src/lib/commands/buy.c
src/lib/commands/cede.c
src/lib/commands/cens.c
src/lib/commands/coll.c
src/lib/commands/comm.c
src/lib/commands/conv.c
src/lib/commands/cuto.c
src/lib/commands/deli.c
src/lib/commands/demo.c
src/lib/commands/dump.c
src/lib/commands/edit.c
src/lib/commands/enli.c
src/lib/commands/expl.c
src/lib/commands/fuel.c
src/lib/commands/give.c
src/lib/commands/hard.c
src/lib/commands/hidd.c
src/lib/commands/leve.c
src/lib/commands/load.c
src/lib/commands/look.c
src/lib/commands/lten.c
src/lib/commands/mfir.c
src/lib/commands/mine.c
src/lib/commands/move.c
src/lib/commands/nati.c
src/lib/commands/new.c
src/lib/commands/prod.c
src/lib/commands/rese.c
src/lib/commands/rout.c
src/lib/commands/sabo.c
src/lib/commands/sell.c
src/lib/commands/set.c
src/lib/commands/setsect.c
src/lib/commands/shoo.c
src/lib/commands/sona.c
src/lib/commands/stre.c
src/lib/commands/tend.c
src/lib/commands/thre.c
src/lib/commands/torp.c
src/lib/commands/tran.c
src/lib/commands/wipe.c
src/lib/common/bridgefall.c
src/lib/common/damage.c
src/lib/common/file.c
src/lib/common/getvar.c
src/lib/common/sectdamage.c
src/lib/common/vlist.c
src/lib/global/file.c
src/lib/global/item.c
src/lib/global/nsc.c
src/lib/player/init_nats.c
src/lib/subs/aircombat.c
src/lib/subs/attsub.c
src/lib/subs/control.c
src/lib/subs/detonate.c
src/lib/subs/fortdef.c
src/lib/subs/lndsub.c
src/lib/subs/mission.c
src/lib/subs/move.c
src/lib/subs/nstr.c
src/lib/subs/plnsub.c
src/lib/subs/retreat.c
src/lib/subs/sect.c
src/lib/subs/shpsub.c
src/lib/subs/takeover.c
src/lib/subs/trdsub.c
src/lib/update/deliver.c
src/lib/update/distribute.c
src/lib/update/land.c
src/lib/update/nav_ship.c
src/lib/update/nav_util.c
src/lib/update/plague.c
src/lib/update/prepare.c
src/lib/update/revolt.c
src/lib/update/sect.c
src/lib/update/ship.c