# | Line 367 | Line 367 | register struct cellact *cap; | |
---|---|---|
367 | hdworld(org, hp, cgp); | |
368 | /* compute direction to voxel center */ | |
369 | for (i = 3; i--; ) | |
370 | < | vgp[i] = voxel[cap->vi].i[i] + 0.5; |
370 | > | vgp[i] = voxel[cap->vi].i[i] + .5; |
371 | hdworld(vc, hp, vgp); | |
372 | for (i = 3; i--; ) | |
373 | vc[i] -= org[i]; | |
# | Line 440 | Line 440 | VIEW *vold, *vnew; | |
440 | ngcp = ngcl = getviewcells(&ncnt, hdlist[voxel[voxi].hd], vnew); | |
441 | /* set up actions */ | |
442 | oca.vi = nca.vi = voxi; | |
443 | – | oca.rev = nca.rev = 0; |
443 | oca.add = 0; nca.add = 1; | |
444 | if ((oca.rev = ocnt < 0)) | |
445 | ocnt = -ocnt; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |