git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4440
d7cf8633-e32d-0410-b094-
e92efae38249
c = FS_Getc(pr_files[filenum]);
if (developer.integer)
Con_Printf("fgets: %s\n", string);
- if (c >= 0)
+ if (c >= 0 || end)
G_INT(OFS_RETURN) = PR_SetString(string);
else
G_INT(OFS_RETURN) = 0;
c = FS_Getc(VM_FILES[filenum]);
if (developer.integer)
Con_Printf("fgets: %s: %s\n", PRVM_NAME, string);
- if (c >= 0)
+ if (c >= 0 || end)
PRVM_G_INT(OFS_RETURN) = PRVM_SetString(string);
else
PRVM_G_INT(OFS_RETURN) = 0;