From f57c71da928a603cebbaa1cc951be4ecca46ff84 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 26 Dec 2020 06:37:07 +0100 Subject: [PATCH] config: Enlarge configuration tables that have variable size Configuration tables product, sect-chr, ship-chr, plane-chr, land-chr, nuke-chr have a bit of extra space deities can use for customizing their games. Give them more: enlarge product from 23 to 31 entries (plus one sentinel), sect-chr from 39 to 63, ship-chr from 47 to 127, plane-chr from 47 to 127, land-chr from 31 to 127, and nuke-chr from 20 to 63. Signed-off-by: Markus Armbruster --- include/land.h | 2 +- include/nuke.h | 2 +- include/plane.h | 2 +- include/product.h | 2 +- include/sect.h | 2 +- include/ship.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/land.h b/include/land.h index cb1bc44a7..a75ef25bb 100644 --- a/include/land.h +++ b/include/land.h @@ -124,7 +124,7 @@ struct lchrstr { #define putland(n, p) ef_write(EF_LAND, (n), (p)) #define getlandp(n) ((struct lndstr *)ef_ptr(EF_LAND, (n))) -#define LCHR_SZ 32 +#define LCHR_SZ 128 extern struct lchrstr lchr[LCHR_SZ]; enum { diff --git a/include/nuke.h b/include/nuke.h index 87bf875a2..cecffc816 100644 --- a/include/nuke.h +++ b/include/nuke.h @@ -82,7 +82,7 @@ struct nchrstr { #define putnuke(n, p) ef_write(EF_NUKE, (n), (p)) #define getnukep(n) ((struct nukstr *)ef_ptr(EF_NUKE, (n))) -#define NCHR_SZ 21 +#define NCHR_SZ 64 extern struct nchrstr nchr[NCHR_SZ]; /* src/lib/common/cargo.c */ diff --git a/include/plane.h b/include/plane.h index 019fb95b3..90847895a 100644 --- a/include/plane.h +++ b/include/plane.h @@ -134,7 +134,7 @@ struct plist { #define putplane(n, p) ef_write(EF_PLANE, (n), (p)) #define getplanep(n) ((struct plnstr *)ef_ptr(EF_PLANE, (n))) -#define PLCHR_SZ 48 +#define PLCHR_SZ 128 extern struct plchrstr plchr[PLCHR_SZ]; struct shiplist { diff --git a/include/product.h b/include/product.h index 42dec6886..ed5bf2eaf 100644 --- a/include/product.h +++ b/include/product.h @@ -57,7 +57,7 @@ struct pchrstr { char *p_sname; /* short (7 char or less) name of product */ }; -#define PCHR_SZ 24 +#define PCHR_SZ 32 extern struct pchrstr pchr[PCHR_SZ]; #endif diff --git a/include/sect.h b/include/sect.h index f7549a4ec..c023abd47 100644 --- a/include/sect.h +++ b/include/sect.h @@ -165,7 +165,7 @@ struct dchrstr { #define getsectp(x, y) ((struct sctstr *)ef_ptr(EF_SECTOR, sctoff((x), (y)))) #define getsectid(id) ((struct sctstr *)ef_ptr(EF_SECTOR, (id))) -#define DCHR_SZ 40 +#define DCHR_SZ 64 extern struct dchrstr dchr[DCHR_SZ]; #define IS_BIG_CITY(type) (dchr[(type)].d_pkg == UPKG) diff --git a/include/ship.h b/include/ship.h index d7bbb26d4..a59f49038 100644 --- a/include/ship.h +++ b/include/ship.h @@ -126,7 +126,7 @@ struct mchrstr { #define putship(n, p) ef_write(EF_SHIP, (n), (p)) #define getshipp(n) ((struct shpstr *)ef_ptr(EF_SHIP, (n))) -#define MCHR_SZ 48 +#define MCHR_SZ 128 extern struct mchrstr mchr[MCHR_SZ]; enum { -- 2.43.0