From eec2abcc96b6fa6d26d0c4ec4997f0ba0b03ad47 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 7 Jan 2024 12:03:45 -0800 Subject: [PATCH] more PR #1193 - doors The old default allocation of space for 120 doors on a level seems excessive. Reduce that to 20. Code for expanding the allocation when needed is already in place. Pull request from #1193 from mkuoppal was superseded by commits 132d6425042205b0b56c6cd064c032d45a4bc5d3 and 3786b2c1d0bd1e05eb27f0b3a9d3c49462221c59 so mark it closed. Closes #1193 --- include/global.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/global.h b/include/global.h index eb93dde80..0b531f32a 100644 --- a/include/global.h +++ b/include/global.h @@ -412,12 +412,12 @@ extern struct nomakedefs_s nomakedefs; #define MAXNROFROOMS 40 /* max number of rooms per level */ #define MAX_SUBROOMS 24 /* max # of subrooms in a given room */ -#define DOORINC 120 /* number of doors per level, increment */ +#define DOORINC 20 /* number of doors per level, increment */ #define BUFSZ 256 /* for getlin buffers */ #define QBUFSZ 128 /* for building question text */ -#define TBUFSZ 300 /* gt.toplines[] buffer max msg: 3 81char names */ -/* plus longest prefix plus a few extra words */ +#define TBUFSZ 300 /* gt.toplines[] buffer max msg: 3 81-char names + * plus longest prefix plus a few extra words */ /* COLBUFSZ is the larger of BUFSZ and COLNO */ #if BUFSZ > COLNO