| 14 |
|
|
| 15 |
|
#include "platform.h" |
| 16 |
|
#include "ray.h" |
| 17 |
+ |
#include "source.h" |
| 18 |
|
#include "ambient.h" |
| 19 |
|
#include "otypes.h" |
| 20 |
|
#include "rpaint.h" |
| 726 |
|
if (thisray.ro == NULL) |
| 727 |
|
(*dev->comout)("ray hit nothing"); |
| 728 |
|
else { |
| 729 |
+ |
OBJREC *mat = findmaterial(thisray.ro); |
| 730 |
|
sprintf(buf, "ray hit %s%s %s \"%s\"", |
| 731 |
|
thisray.rod < 0.0 ? "back of " : "", |
| 732 |
< |
thisray.ro->omod == OVOID ? VOIDID : |
| 731 |
< |
objptr(thisray.ro->omod)->oname, |
| 732 |
> |
mat==NULL ? VOIDID : mat->oname, |
| 733 |
|
ofun[thisray.ro->otype].funame, |
| 734 |
|
thisray.ro->oname); |
| 735 |
|
if ((ino = objptr(thisray.robj)) != thisray.ro) |