41 |
|
return(0); /* missed */ |
42 |
|
if (rcont.rot * in->f.sca >= r->rot) |
43 |
|
return(0); /* not close enough */ |
44 |
< |
/* if we have modifier, use it */ |
45 |
< |
if (o->omod != OVOID) |
44 |
> |
|
45 |
> |
if (o->omod != OVOID) { /* if we have modifier, use it */ |
46 |
|
r->ro = o; |
47 |
< |
else { /* else use theirs */ |
47 |
> |
r->rofs = 1.0; setident4(r->rofx); |
48 |
> |
r->robs = 1.0; setident4(r->robx); |
49 |
> |
} else { /* else use theirs */ |
50 |
|
r->ro = rcont.ro; |
51 |
< |
multmat4(r->rofx, in->f.xfm, rcont.rofx); |
52 |
< |
r->rofs = in->f.sca * rcont.rofs; |
51 |
> |
multmat4(r->rofx, rcont.rofx, in->f.xfm); |
52 |
> |
r->rofs = rcont.rofs * in->f.sca; |
53 |
|
multmat4(r->robx, in->b.xfm, rcont.robx); |
54 |
|
r->robs = in->b.sca * rcont.robs; |
55 |
|
} |