--- ray/src/ot/sphere.c 2004/03/30 16:13:00 2.5 +++ ray/src/ot/sphere.c 2016/04/20 18:51:35 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: sphere.c,v 2.5 2004/03/30 16:13:00 schorsch Exp $"; +static const char RCSid[] = "$Id: sphere.c,v 2.6 2016/04/20 18:51:35 greg Exp $"; #endif /* * sphere.c - routines for creating octrees for spheres. @@ -53,13 +53,13 @@ static const char RCSid[] = "$Id: sphere.c,v 2.5 2004/ int o_sphere( /* determine if sphere intersects cube */ OBJREC *o, - register CUBE *cu + CUBE *cu ) { FVECT v1; double d1, d2; - register RREAL *fa; - register int i; + RREAL *fa; + int i; #define cent fa #define rad fa[3] /* get arguments */ @@ -71,8 +71,10 @@ o_sphere( /* determine if sphere intersects cube */ o->otype = o->otype == OBJ_SPHERE ? OBJ_BUBBLE : OBJ_SPHERE; rad = -rad; - } else if (rad <= FTINY) - objerror(o, USER, "zero radius"); + } else if (rad <= FTINY) { + objerror(o, WARNING, "zero radius"); + return(O_MISS); + } d1 = ROOT3/2.0 * cu->cusize; /* bounding radius for cube */