a spellbook has been destroyed or the character has changed levels; the stored address for the current book is no longer valid */
| 643 | /* a spellbook has been destroyed or the character has changed levels; |
| 644 | the stored address for the current book is no longer valid */ |
| 645 | void |
| 646 | book_disappears(struct obj *obj) |
| 647 | { |
| 648 | if (obj == svc.context.spbook.book) { |
| 649 | svc.context.spbook.book = (struct obj *) 0; |
| 650 | svc.context.spbook.o_id = 0; |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | /* renaming an object usually results in it having a different address; |
| 655 | so the sequence start reading, get interrupted, name the book, resume |