the-infocom-files / starcross

Starcross
5 stars 3 forks source link

Double response when shooting the huts #27

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago
>SHOOT HUTS
A few huts are destroyed; many remain.
An explosion of orange rays sweeps over the hut, but when the smoke clears, it
is still there (though perhaps a bit singed).

I think this is because HUTS-F returns false:

<ROUTINE HUTS-F ()
     <COND (<VERB? ZAP>
        <TELL "A few huts are destroyed; many remain." CR>
        <SETG ALIENS-FRIENDLY? <>>)
           (T <EX-CHECK>)>>

Changing the order of the TELL and the SETG should fix it, I guess. I haven't tried it.

eriktorbjorn commented 4 years ago

This may be because in ZILF <SETG ALIENS-FRIENDLY? <>> returns 0, while at least in some versions of ZILCH it didn't.