zlib support (gzipped pack contents). if you have a probelm with gzgets, you

have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
This commit is contained in:
Bill Currie 2000-09-27 19:44:26 +00:00
parent 7c12c9b4c7
commit 86f87122c0
39 changed files with 537 additions and 328 deletions

View file

@ -101,7 +101,7 @@ void R_ClearParticles (void)
void R_ReadPointFile_f (void)
{
FILE *f;
QFile *f;
vec3_t org;
int r;
int c;
@ -121,7 +121,9 @@ void R_ReadPointFile_f (void)
c = 0;
for ( ;; )
{
r = fscanf (f,"%f %f %f\n", &org[0], &org[1], &org[2]);
char buf[64];
Qgets(f, buf, sizeof(buf));
r = sscanf (buf,"%f %f %f\n", &org[0], &org[1], &org[2]);
if (r != 3)
break;
c++;
@ -143,7 +145,7 @@ void R_ReadPointFile_f (void)
VectorCopy (org, p->org);
}
fclose (f);
Qclose (f);
Con_Printf ("%i points read\n", c);
}