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
132d642504 and
3786b2c1d0 so mark it closed.

Closes #1193
This commit is contained in:
PatR
2024-01-07 12:03:45 -08:00
parent 3786b2c1d0
commit eec2abcc96

View File

@@ -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