Remove the per dungeon level door limit

Number of doors in a room-and-corridor style level was fixed
at 120; now the doors-array is dynamically allocated when needed.

Breaks saves and bones.
This commit is contained in:
Pasi Kallinen
2022-09-09 12:58:45 +03:00
parent c6a8519fec
commit a733004912
10 changed files with 85 additions and 62 deletions

View File

@@ -817,7 +817,8 @@ struct instance_globals {
char toplines[TBUFSZ];
coord bhitpos; /* place where throw or zap hits or stops */
boolean in_steed_dismounting;
coord doors[DOORMAX];
int doors_alloc; /* doors-array allocated size */
coord *doors; /* array of door locations */
struct menucoloring *menu_colorings;
schar lastseentyp[COLNO][ROWNO]; /* last seen/touched dungeon typ */
struct spell spl_book[MAXSPELL + 1];