]> git.pond.sub.org Git - empserver/commit
(i_type, I_NONE): shift the enum down 1, so that I_NONE does not need to
authorMarc Olzheim <marcolz@stack.nl>
Tue, 12 Oct 2004 19:48:53 +0000 (19:48 +0000)
committerMarc Olzheim <marcolz@stack.nl>
Tue, 12 Oct 2004 19:48:53 +0000 (19:48 +0000)
commit442803c30a4fbca4af3b13049617b516ca8ecc69
tree996960ac9648212d51f14643218377def03b642b
parent19e4dc57edb401a4561d3a50bf96ae0527a8f7de
(i_type, I_NONE): shift the enum down 1, so that I_NONE does not need to
be skipped or stored in arrays of size I_MAX. I_NONE's int equivalent
becomes -1 by this patch, so all array indices of type i_type have been
checked not to use I_NONE as index.  This change reduces the size of the
arrays stored in files.
include/item.h
src/lib/global/item.c
src/lib/global/land.c
src/lib/global/ship.c
src/lib/subs/sect.c
src/lib/subs/whatitem.c
src/lib/update/bp.c