revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't.

This commit is contained in:
Bill Currie 2000-05-23 22:43:36 +00:00
parent 02eaf75b18
commit e98edd5f5f
15 changed files with 113 additions and 115 deletions

View file

@ -107,7 +107,6 @@ void R_ReadPointFile_f (void)
int c;
particle_t *p;
char name[MAX_OSPATH];
char buf[256];
// FIXME sprintf (name,"maps/%s.pts", sv.name);
@ -122,9 +121,7 @@ void R_ReadPointFile_f (void)
c = 0;
for ( ;; )
{
if (!Qgets(f,buf,sizeof(buf)))
break;
r = sscanf (buf,"%f %f %f\n", &org[0], &org[1], &org[2]);
r = fscanf (f,"%f %f %f\n", &org[0], &org[1], &org[2]);
if (r != 3)
break;
c++;
@ -146,7 +143,7 @@ void R_ReadPointFile_f (void)
VectorCopy (org, p->org);
}
Qclose (f);
fclose (f);
Con_Printf ("%i points read\n", c);
}