240 |
|
cur[0] += ourview.vp[0]; |
241 |
|
cur[1] += ourview.vp[1]; |
242 |
|
cur[2] += ourview.vp[2]; |
243 |
< |
viewloc(pp, &ourview, cur); |
244 |
< |
if (pp[2] <= 0.0) |
243 |
> |
if (viewloc(pp, &ourview, cur) <= 0) |
244 |
|
goto fail; |
245 |
|
loc2pix(ip, &pres, pp[0], pp[1]); |
246 |
|
pt[i].x = ip[0]; |
268 |
|
pos[0] = ourview.vp[0] + dir[0]; |
269 |
|
pos[1] = ourview.vp[1] + dir[1]; |
270 |
|
pos[2] = ourview.vp[2] + dir[2]; |
271 |
< |
viewloc(pp, &ourview, pos); |
273 |
< |
if (pp[2] <= 0.0) |
271 |
> |
if (viewloc(pp, &ourview, pos) <= 0) |
272 |
|
return; |
273 |
|
loc2pix(ip, &pres, pp[0], pp[1]); |
274 |
|
sprintf(buf, "%.0f", v); |