]> git.pond.sub.org Git - empserver/commitdiff
config: Enlarge configuration tables that have variable size
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 26 Dec 2020 05:37:07 +0000 (06:37 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:03 +0000 (07:08 +0100)
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 <armbru@pond.sub.org>
include/land.h
include/nuke.h
include/plane.h
include/product.h
include/sect.h
include/ship.h

index cb1bc44a76340faed8d184e88b6de4ff42adb5da..a75ef25bb51c92d2c862c459497500167c8505fc 100644 (file)
@@ -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 {
index 87bf875a253981fa0f214797d7ae0d8fdf512210..cecffc8161ab3909c811021f210bb86f10b358ac 100644 (file)
@@ -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 */
index 019fb95b3ebe145048c343bf913cb8c96932ce68..90847895ad74b5a406738094abb8934330b06399 100644 (file)
@@ -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 {
index 42dec68868e6b6cb007864a77c334cdf2393a086..ed5bf2eafc39ed5f0b3bb6090b746eccb56078a1 100644 (file)
@@ -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
index f7549a4ec02b2885d322e04ce91fa3509b3797d6..c023abd47663c64b7ecd57e583b005a7109174e0 100644 (file)
@@ -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)
index d7bbb26d497cadae29276bfe672557400d6ca381..a59f49038d0a40c4b39f85a5f9b7f9a8ef8b83f1 100644 (file)
@@ -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 {