--- ray/src/hd/rhd_geom.c 1998/12/20 20:35:43 3.2 +++ ray/src/hd/rhd_geom.c 1999/01/29 11:11:14 3.6 @@ -1,4 +1,4 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ +/* Copyright (c) 1999 Silicon Graphics, Inc. */ #ifndef lint static char SCCSid[] = "$SunId$ SGI"; @@ -33,7 +33,7 @@ static struct gmEntry { #define FORALLPORT(pl,i) for (i=0;i=0, g>=0, b>=0, a>=0); + glColor4ub(r&0xff, g&0xff, b&0xff, a&0xff); glCallList(gmPortals); /* draw them portals */ glPopAttrib(); - return(n); } @@ -134,11 +145,7 @@ char *pflist; if (pflist == NULL) return; - while (*pflist) { - atos(newfile, sizeof(newfile), pflist); - if (!*newfile) - break; - pflist = sskip(pflist); + while ((pflist = nextword(newfile, sizeof(newfile), pflist)) != NULL) { FORALLPORT(newportlist,i) if (!strcmp(newportlist[i], newfile)) goto endloop; /* in list already */