--- ray/src/hd/rholo.c 1998/06/03 12:18:24 3.40 +++ ray/src/hd/rholo.c 1998/10/27 08:49:50 3.42 @@ -420,6 +420,7 @@ HDGRID *gp; } +int headline(s) /* process information header line */ char *s; { @@ -433,7 +434,7 @@ char *s; HOLOFMT, hdkfile, FMTSTR, fmt); error(USER, errmsg); } - return; + return(0); } for (cp = s; *cp; cp++) /* take off any comments */ if (*cp == '#') { @@ -441,6 +442,7 @@ char *s; break; } setvariable(s, matchvar); /* don't flag errors */ + return(0); } @@ -504,8 +506,15 @@ PACKET *pl; p->next = freepacks; /* push onto free list */ freepacks = p; } +#if MAXQTIME if (n2flush > 300/MAXQTIME*totqlen) { - hdflush(NULL); /* flush holodeck buffers */ +#else + if (n2flush > 50*totqlen) { +#endif + if (outdev == NULL) + hdflush(NULL); /* flush holodeck buffers */ + else + hdsync(NULL, 1); /* sync holodeck file */ n2flush = 0; } }