--- ray/src/rt/rv2.c 1993/12/15 16:59:14 2.22 +++ ray/src/rt/rv2.c 1994/07/12 15:24:28 2.25 @@ -350,12 +350,13 @@ char *s; register PNODE *p = &ptrunk; int adapt = 0; double e = 1.0; -start: + for (cp = s; isspace(*cp); cp++) ; if (*cp == '@') { adapt++; - goto start; + while (isspace(*++cp)) + ; } if (*cp == '\0') { /* normalize to point */ if (dev->getcur == NULL) @@ -636,7 +637,8 @@ char *s; if (thisray.ro == NULL) (*dev->comout)("ray hit nothing"); else { - sprintf(buf, "ray hit %s %s \"%s\"", + sprintf(buf, "ray hit %s%s %s \"%s\"", + thisray.rod < 0.0 ? "back of " : "", thisray.ro->omod == OVOID ? VOIDID : objptr(thisray.ro->omod)->oname, ofun[thisray.ro->otype].funame, @@ -692,6 +694,7 @@ char *s; (*dev->comout)(fname); (*dev->comout)("\"...\n"); /* write header */ + newheader("RADIANCE", fp); fputs(progname, fp); fprintview(&ourview, fp); if (octname != NULL)