Modified objects initialization to support re-entry.

This commit is contained in:
Bart House
2018-11-23 15:13:22 -08:00
parent 041e55467a
commit c3eefefc99
13 changed files with 26 additions and 30 deletions

View File

@@ -164,7 +164,7 @@ void NDECL(do_oracles);
void NDECL(do_vision);
extern void NDECL(monst_init); /* monst.c */
extern void NDECL(objects_init); /* objects.c */
extern void NDECL(objects_globals_init); /* objects.c */
static void NDECL(link_sanity_check);
static char *FDECL(name_file, (const char *, const char *));
@@ -296,7 +296,6 @@ link_sanity_check()
we're linked properly.
*/
monst_init();
objects_init();
}
@@ -306,6 +305,8 @@ char *options;
{
boolean more_than_one;
objects_globals_init();
link_sanity_check();
/* construct the current version number */