| 415 |
|
if (bright(sr.rcol) <= FTINY) { |
| 416 |
|
#if SHADCACHE |
| 417 |
|
if ((scp <= srccnt || scp[-1].sno != scp->sno) |
| 418 |
< |
&& (scp >= srccnt+ncnts || |
| 418 |
> |
&& (scp >= srccnt+ncnts-1 || |
| 419 |
|
scp[1].sno != scp->sno)) |
| 420 |
|
srcblocker(&sr); |
| 421 |
|
#endif |
| 544 |
|
*/ |
| 545 |
|
|
| 546 |
|
static int |
| 547 |
< |
weaksrcmat(int obj) /* identify material */ |
| 547 |
> |
weaksrcmat(OBJECT obj) /* identify material */ |
| 548 |
|
{ |
| 549 |
< |
register OBJREC *o = objptr(obj); |
| 549 |
> |
OBJREC *o = findmaterial(objptr(obj)); |
| 550 |
|
|
| 551 |
< |
while (!ismaterial(o->otype)) /* find material */ |
| 552 |
< |
o = objptr(o->omod); |
| 551 |
> |
if (o == NULL) return 0; |
| 552 |
|
return((o->otype==MAT_ILLUM)|(o->otype==MAT_GLOW)); |
| 553 |
|
} |
| 554 |
|
|