renaming an object usually results in it having a different address; so the sequence start reading, get interrupted, name the book, resume reading would read the "new" book from scratch */
| 655 | so the sequence start reading, get interrupted, name the book, resume |
| 656 | reading would read the "new" book from scratch */ |
| 657 | void |
| 658 | book_substitution(struct obj *old_obj, struct obj *new_obj) |
| 659 | { |
| 660 | if (old_obj == svc.context.spbook.book) { |
| 661 | svc.context.spbook.book = new_obj; |
| 662 | if (svc.context.spbook.book) |
| 663 | svc.context.spbook.o_id = svc.context.spbook.book->o_id; |
| 664 | } |
| 665 | } |
| 666 | |
| 667 | /* called from moveloop() */ |
| 668 | void |
nothing calls this directly
no outgoing calls
no test coverage detected