--- ray/src/hd/viewbeams.c 2003/04/23 00:52:34 3.3 +++ ray/src/hd/viewbeams.c 2003/06/30 14:59:12 3.5 @@ -1,10 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: viewbeams.c,v 3.3 2003/04/23 00:52:34 greg Exp $"; +static const char RCSid[] = "$Id: viewbeams.c,v 3.5 2003/06/30 14:59:12 schorsch Exp $"; #endif /* * Convert view to beam list. */ +#include + #include "rholo.h" #include "view.h" #include "random.h" @@ -46,14 +48,14 @@ int hd, bi, nr; } -int2 * +int16 * viewbeams(vp, hr, vr, blp) /* convert view into sections/beams */ VIEW *vp; int hr, vr; BEAMLIST *blp; { - static int2 sectlist[HDMAX+1]; - int2 sectarr[MINRES+1][MINRES+1]; + static int16 sectlist[HDMAX+1]; + int16 sectarr[MINRES+1][MINRES+1]; double d0, d1, mindist; GCOORD gc[2]; FVECT rorg, rdir; @@ -61,7 +63,7 @@ BEAMLIST *blp; int v; register int h, hd; /* clear section flags */ - bzero((char *)sectlist, sizeof(sectlist)); + memset((char *)sectlist, '\0', sizeof(sectlist)); /* identify view sections */ for (v = 0; v <= MINRES; v++) for (h = 0; h <= MINRES; h++) {