the-infocom-files/bureaucracy

"RING" checks for the wrong location

Opened this issue · 0 comments

>LOOK
69 Mandalay

You're standing on a well-kept sidewalk to the east of your new house. The
street bears north and south. There's an overgrown alleyway to the east.

There's a mailbox here.

>RING DOORBELL
You don't see any doorbell here.

>RING
When you push the doorbell you hear an earsplitting clatter of bells, buzzers
and gongs that shakes the mansion to its foundation.

Nothing happens for a moment. Then an old woman's voice, deep within the
mansion, cries "Coming, Cecil!"

You hear footsteps behind the front door.

That's the wrong doorbell, and it happens because of a bug in V-RING:

<DEFINE V-RING ()
	 <COND (<PRSO? ROOMS>
		<COND (<HERE? OUTSIDE-HOUSE>
		       <PERFORM ,V?RING ,MANSION-BELL>)
		      (T
		       <TELL "There's nothing here to ring." CR>)>)
	       (T
	        <TELL ,CANT "ring " A ,PRSO ,PERIOD>)>
	 T>

It's supposed to check for OUTSIDE-MANSION, not OUTSIDE-HOUSE.