(nchr): Move the array size to nuke.h. Add rows for configurable units.

(lchr,plchr,mchr): Add array size to land.h/plane.h/ship.h.  Add rows for
configurable units.
(ichr,pchr,dchr,intrchr): Add array size to item.h/product.h/sect.h.
This commit is contained in:
Ron Koenderink 2005-10-28 13:23:08 +00:00
parent b3ab6abf4a
commit 7c93f70ee4
8 changed files with 13 additions and 10 deletions

View file

@ -34,7 +34,7 @@
#ifndef _NUKE_H_
#define _NUKE_H_
#define N_MAXNUKE 15
#define N_MAXNUKE 20
struct nukstr {
/* initial part must match struct genitem */
@ -78,7 +78,7 @@ struct nchrstr {
#define NUK_BLD_WORK(lcm, hcm, oil, rad) \
(((lcm) + 2 * (hcm) + (oil) + (rad) + 4) / 5)
extern struct nchrstr nchr[];
extern struct nchrstr nchr[N_MAXNUKE + 1];
extern int nuk_maxno;