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

@@ -286,7 +286,8 @@ const struct instance_globals g_init = {
UNDEFINED_VALUES, /* toplines */
{ 0, 0 }, /* bhitpos */
FALSE, /* in_steed_dismounting */
{ { 0, 0 } }, /* doors */
0, /* doors_alloc */
NULL, /* doors */
UNDEFINED_PTR, /* menu_colorings */
{ { 0 } }, /* lastseentyp */
{ DUMMY }, /* spl_book */