more context (trunk only)

- reading spellbooks
- taking off
This commit is contained in:
nethack.allison
2003-10-08 03:31:06 +00:00
parent 9c24966fe2
commit 27749e572e
7 changed files with 192 additions and 146 deletions
+4 -2
View File
@@ -235,10 +235,12 @@ boolean ghostly, frozen;
if (otmp->bypass) otmp->bypass = 0;
if (!ghostly) {
/* fix the pointers */
if (context.victual.o_id == otmp->o_id)
if (otmp->o_id == context.victual.o_id)
context.victual.piece = otmp;
if (context.tin.o_id == otmp->o_id)
if (otmp->o_id == context.tin.o_id)
context.tin.tin = otmp;
if (otmp->o_id == context.spbook.o_id)
context.spbook.book = otmp;
}
otmp2 = otmp;
}