]> git.pond.sub.org Git - empserver/commit
(pchrstr, MAXPRCON): Simplify variable-style storage of constituents.
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 15:19:46 +0000 (15:19 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 15:19:46 +0000 (15:19 +0000)
commit4d154753b86e0e7b2c7640646769541b8e688f86
tree49a206c8d14648dbe6f9a26c480daba992d432fe
parent15d4f899515e0bfe43eb118123aa84be29711d37
(pchrstr, MAXPRCON): Simplify variable-style storage of constituents.
Store only up to MAXPRCON constituents, not MAXCHRNV; code doesn't
fully support more than three anyway.  Remove member p_nv, use item
type I_NONE for unused slots.  Rename members p_vtype, p_vamt to
p_ctype, p_camt to avoid confusion with variable-style storage.
(pchr): Initializers adapted.
(nullify_objects, materials_cost, materials_charge, prod,
show_sect_capab, grind): Adapt, simplify where possible, protect
against bad item types in pchr[].
(MAXCHRNV): Unused, remove.
include/misc.h
include/product.h
src/lib/commands/grin.c
src/lib/commands/prod.c
src/lib/global/product.c
src/lib/subs/show.c
src/lib/update/produce.c
src/server/main.c