the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"DIAGNOSE" sometimes prints an unnecessary blank line #52

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>DIAGNOSE

You feel as if you're burning up with fever: weak, hot, and sweaty.

This happens after you have been sabotaged, and seems to be because V-DIAGNOSE prints a newline first:

<ROUTINE V-DIAGNOSE ()
     <COND (<G? ,AIR-CONDITIONING-COUNTER 34>
        <CRLF>
           (<G? ,AIR-CONDITIONING-COUNTER 19>
        <CRLF>

Wouldn't it be better to print this newline in I-AIR-CONDITIONING instead?

<ROUTINE I-AIR-CONDITIONING ()
     <SETG AIR-CONDITIONING-COUNTER <+ ,AIR-CONDITIONING-COUNTER 1>>
     <COND (<EQUAL? ,AIR-CONDITIONING-COUNTER 20 35>
        <V-DIAGNOSE>
        <RTRUE>)