| 324 |
|
ap[i] += ourview.vp[i]; |
| 325 |
|
} |
| 326 |
|
} |
| 327 |
< |
viewloc(ip, &ourview, ap); /* find image point */ |
| 328 |
< |
if (ip[2] <= 0.) |
| 327 |
> |
/* find image point */ |
| 328 |
> |
if (viewloc(ip, &ourview, ap) <= 0) |
| 329 |
|
return(0); /* in front of view */ |
| 330 |
|
sp[j][0] = ip[0]; sp[j][1] = ip[1]; |
| 331 |
|
} |
| 348 |
|
if (cubeord[dir][j] & 4) ap[i] += s->ss[SW][i]; |
| 349 |
|
else ap[i] -= s->ss[SW][i]; |
| 350 |
|
} |
| 351 |
< |
viewloc(ip, &ourview, ap); /* find image point */ |
| 352 |
< |
if (ip[2] <= 0.) |
| 351 |
> |
/* find image point */ |
| 352 |
> |
if (viewloc(ip, &ourview, ap) <= 0) |
| 353 |
|
return(0); /* in front of view */ |
| 354 |
|
pt[j][0] = ip[0]; pt[j][1] = ip[1]; |
| 355 |
|
} |