From ada46781284a06390c98f01326c4639db303a39d 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 ef0c0584..31bf2f33 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))) -extern struct lchrstr lchr[32]; +extern struct lchrstr lchr[128]; enum { LND_AIROPS_EFF = 50 /* min. efficiency for air ops */ diff --git a/include/nuke.h b/include/nuke.h index d42a1293..723cfc55 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))) -extern struct nchrstr nchr[21]; +extern struct nchrstr nchr[64]; /* src/lib/common/cargo.c */ extern void nuk_carrier_change(struct nukstr *, int, int, int); diff --git a/include/plane.h b/include/plane.h index 66af379f..05cbf2f3 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))) -extern struct plchrstr plchr[48]; +extern struct plchrstr plchr[128]; struct shiplist { int uid; diff --git a/include/product.h b/include/product.h index b6c5a038..cab97b0c 100644 --- a/include/product.h +++ b/include/product.h @@ -57,6 +57,6 @@ struct pchrstr { char *p_sname; /* short (7 char or less) name of product */ }; -extern struct pchrstr pchr[24]; +extern struct pchrstr pchr[32]; #endif diff --git a/include/sect.h b/include/sect.h index 28d30a4e..f71b3749 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))) -extern struct dchrstr dchr[40]; +extern struct dchrstr dchr[64]; #define IS_BIG_CITY(type) (dchr[(type)].d_pkg == UPKG) /* Minimal efficiency of sectors that can be knocked down (bridges) */ diff --git a/include/ship.h b/include/ship.h index 84aece94..23a83dd4 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))) -extern struct mchrstr mchr[48]; +extern struct mchrstr mchr[128]; enum { SHP_AIROPS_EFF = 50, /* min. efficiency for air ops */