# | Line 310 | Line 310 | char *p; /* data for f */ | |
---|---|---|
310 | double prob, ourthresh, hwt, test2, hit2; | |
311 | RAY sr; | |
312 | ||
313 | + | if (nsources <= 0) |
314 | + | return; |
315 | srccnt = (CONTRIB *)malloc(nsources*sizeof(CONTRIB)); | |
316 | cntord = (CNTPTR *)malloc(nsources*sizeof(CNTPTR)); | |
317 | if (srccnt == NULL || cntord == NULL) | |
# | Line 453 | Line 455 | register RAY *r; | |
455 | m->oargs.farg[2]); | |
456 | /* modify value */ | |
457 | multcolor(r->rcol, r->pcol); | |
458 | + | /* assign distance */ |
459 | + | r->rt = r->rot; |
460 | } | |
461 | } | |
462 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |