13 |
|
#include "rhdriver.h" |
14 |
|
|
15 |
|
#ifndef MAXDIST |
16 |
< |
#define MAXDIST 13 /* maximum distance outside section */ |
16 |
> |
#define MAXDIST 42 /* maximum distance outside section */ |
17 |
|
#endif |
18 |
|
|
19 |
|
extern GCOORD *getviewcells(); |
484 |
|
VOXL vlnew[8]; |
485 |
|
int n, comn; |
486 |
|
|
487 |
< |
if (!vn->type) { /* clear our beam list */ |
487 |
> |
if (vn == NULL || !vn->type) { /* clear our beam list */ |
488 |
|
set_voxels(vlnew, 0); |
489 |
|
cbeamop(DR_DELSET, cbeam, ncbeams, NULL, 0, 0); |
490 |
|
ncbeams = 0; |
491 |
< |
copystruct(&dvw, vn); |
491 |
> |
dvw.type = 0; |
492 |
|
return(1); |
493 |
|
} |
494 |
|
/* find our new voxels */ |