32 |
|
|
33 |
|
extern char *atos(); |
34 |
|
|
35 |
+ |
extern FILE *popen(); |
36 |
+ |
|
37 |
|
extern char rifname[128]; /* rad input file name */ |
38 |
|
|
39 |
|
extern char VersionID[]; |
636 |
|
if (thisray.ro == NULL) |
637 |
|
(*dev->comout)("ray hit nothing"); |
638 |
|
else { |
639 |
< |
sprintf(buf, "ray hit %s %s \"%s\"", |
640 |
< |
objptr(thisray.ro->omod)->oname, |
639 |
> |
sprintf(buf, "ray hit %s%s %s \"%s\"", |
640 |
> |
thisray.rod < 0.0 ? "back of " : "", |
641 |
> |
thisray.ro->omod == OVOID ? VOIDID : |
642 |
> |
objptr(thisray.ro->omod)->oname, |
643 |
|
ofun[thisray.ro->otype].funame, |
644 |
|
thisray.ro->oname); |
645 |
|
(*dev->comout)(buf); |