the-infocom-files / deadline

Deadline
4 stars 3 forks source link

Turning the stereo on or off doesn't check STEREO-ON #42

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago

Since STEREO-F doesn't check STEREO-ON when you turn it on or off (LAMP-ON and LAMP-OFF), you get the same response if you turn it on or off repeatedly.

     <COND (<VERB? LAMP-ON>
        <TELL
"The stereo is now on." CR>
        <SETG STEREO-ON T>)
           (<VERB? LAMP-OFF>
        <COND (<AND ,TUNE-ON <IN? ,GEORGE ,HERE>>
               <TELL
"George turns toward you in disgust as you turn off the " ,TUNE-ON "." CR>)
              (T <TELL "The stereo is now off." CR>)>
        <SETG STEREO-ON <>>
        <SETG TUNE-ON <>>
        <QUEUE I-TUNE-OFF 0>    ;"Glitch from Electronic Games 10/84"
        <RTRUE>)