# | Line 55 | Line 55 | m_clip( /* clip objects from ray */ | |
---|---|---|
55 | } | |
56 | m->os = (char *)modset; | |
57 | } | |
58 | + | if (r == NULL) |
59 | + | return(0); /* just initializing */ |
60 | if (r->clipset != NULL) | |
61 | setcopy(cset, r->clipset); | |
62 | else | |
# | Line 78 | Line 80 | m_clip( /* clip objects from ray */ | |
80 | r->newcset = cset; | |
81 | if (strcmp(m->oargs.sarg[0], VOIDID)) { | |
82 | int inside = 0; | |
83 | < | register RAY *rp; |
83 | > | register const RAY *rp; |
84 | /* check for penetration */ | |
85 | for (rp = r; rp->parent != NULL; rp = rp->parent) | |
86 | if (!(rp->rtype & RAYREFL) && rp->parent->ro != NULL |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |