move lua context out of dungeons[]
and out of save files so restore doesn't need to clear stale data. Behavior should be the same as before, except that when entering the endgame branch and discarding the main dungeon and its other branches, lua theme context is now discarded for those too.
This commit is contained in:
@@ -413,7 +413,7 @@ const struct instance_globals g_init = {
|
||||
DUMMY, /* warnsyms */
|
||||
|
||||
/* dungeon.c */
|
||||
UNDEFINED_VALUE, /* n_dgns */
|
||||
0, /* n_dgns */
|
||||
NULL, /* branches */
|
||||
NULL, /* mapseenchn */
|
||||
|
||||
@@ -478,6 +478,7 @@ const struct instance_globals g_init = {
|
||||
UNDEFINED_VALUE, /* mhitu_dieroll */
|
||||
|
||||
/* mklev.c */
|
||||
UNDEFINED_VALUES, /* luathemes[] */
|
||||
UNDEFINED_VALUE, /* vault_x */
|
||||
UNDEFINED_VALUE, /* vault_y */
|
||||
UNDEFINED_VALUE, /* made_branch */
|
||||
|
||||
Reference in New Issue
Block a user