the-infocom-files / witness

The Witness
3 stars 4 forks source link

"ASK FOR <object>" prints wrong response. #43

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LOOK
(butler's room)
This is the bedroom of the butler, Mr. Phong, and is very simply furnished. A
single bed, flanked by bare wooden end tables, sits below a closed window on the
west end of the room. The floor is hardwood, with no rug. The only exit is a
door to the east, which is open.
Another door, now closed, must lead to a private bathroom.
Phong is lying on the bed, reading a book.

>ASK FOR MYSTERY BOOK
Mr. Phong hands you the.

>INVENTORY
You are carrying:
  a mystery book
  a threatening note
  a telegram
  a pair of handcuffs
  a snub-nosed Colt
  a match book

This is handled by PRE-ASK-CONTEXT-FOR which determines who you mean to ask for, and then performs the appropriate ASK-FOR action.

The message is then printed by <TELL " hands you" THE-PRSI "." CR>, which I think ends up calling PRSI-PRINT. I guess something there doesn't work correctly in this case.