Moved decl.c globals into instance globals.

This commit is contained in:
Bart House
2018-12-22 18:44:22 -08:00
parent 6c0df43a17
commit 74edf42f1c
83 changed files with 818 additions and 824 deletions

View File

@@ -354,7 +354,7 @@ learn(VOID_ARGS)
context.spbook.o_id = 0;
nomul(context.spbook.delay); /* remaining delay is uninterrupted */
g.multi_reason = "reading a book";
nomovemsg = 0;
g.nomovemsg = 0;
context.spbook.delay = 0;
return 0;
}
@@ -557,7 +557,7 @@ register struct obj *spellbook;
nomul(context.spbook.delay); /* study time */
g.multi_reason = "reading a book";
nomovemsg = 0;
g.nomovemsg = 0;
context.spbook.delay = 0;
if (gone || !rn2(3)) {
if (!gone)
@@ -575,7 +575,7 @@ register struct obj *spellbook;
}
nomul(context.spbook.delay);
g.multi_reason = "reading a book";
nomovemsg = 0;
g.nomovemsg = 0;
context.spbook.delay = 0;
return 1;
}