--- ray/src/util/ranimove1.c 2012/10/05 01:03:22 3.22 +++ ray/src/util/ranimove1.c 2020/05/14 20:58:03 3.26 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ranimove1.c,v 3.22 2012/10/05 01:03:22 greg Exp $"; +static const char RCSid[] = "$Id: ranimove1.c,v 3.26 2020/05/14 20:58:03 greg Exp $"; #endif /* * ranimove1.c @@ -16,6 +16,7 @@ static const char RCSid[] = "$Id: ranimove1.c,v 3.22 2 #include "platform.h" #include "ranimove.h" #include "otypes.h" +#include "otspecial.h" #include "source.h" #include "random.h" @@ -329,8 +330,7 @@ setmotion( /* compute motion vector for this pixel */ multp3(ovp, wpos, obj_move[moi].bxfm); wpos = ovp; } - viewloc(ovp, &vwprev, wpos); - if (ovp[2] <= FTINY) + if (viewloc(ovp, &vwprev, wpos) != VL_GOOD) return; xp = (int)(ovp[0]*hres); yp = (int)(ovp[1]*vres); @@ -421,7 +421,7 @@ init_frame_sample(void) /* sample our initial frame * zbuffer[n] = ir.rot; obuffer[n] = ir.robj; sbuffer[n] = 1; - if (ir.rot >= FHUGE) + if (ir.rot >= 0.99*FHUGE) abuffer[n] = ADISTANT; else { abuffer[n] = ALOWQ;