the-infocom-files / cutthroats

Cutthroats
3 stars 3 forks source link

Wrong response to "SEARCH TELLER" #18

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LOOK
Mariners' Trust
You are in Mariners' Trust, the Island's bank. In it are a table and a teller's
window. You can see the safe beyond, and it looks pretty empty.
A teller sits behind the window.

>SEARCH TELLER
You can't reach behind the counter.

The teller is behind a window, not a counter. I wouldn't even have noticed this if there hadn't been a case for it in SPEAR-CARRIER-F:

           (<VERB? SEARCH>
        <TELL-YOU-CANT "reach behind the " <>>
        <COND (<IN? ,BAR ,HERE>
               <TELL D ,BAR>)
              (<IN? ,WINDOW ,HERE>
               <TELL D ,WINDOW>)
              (T <TELL D ,GLOBAL-SURFACE>)>
        <TELL "." CR>
        <RTRUE>)

The window isn't in the bank, it's a local global object. So it should probably check <GLOBAL-IN? ,WINDOW ,HERE> instead.