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:
PatR
2020-05-05 18:06:00 -07:00
parent 19529ffb2f
commit a51e44e532
9 changed files with 57 additions and 44 deletions

View File

@@ -949,6 +949,7 @@ struct instance_globals {
int mhitu_dieroll;
/* mklev.c */
genericptr_t luathemes[MAXDUNGEON];
xchar vault_x;
xchar vault_y;
boolean made_branch; /* used only during level creation */