fix wireframe.
increase xz memory limit fix fseek/fsize to match definitions. r_deluxemapping is more aggressive with regards to generating lux files on demand (but won't generate lit data at the same time). fix webgl shader issues. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5071 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c385cb71b4
commit
dadec86338
14 changed files with 449 additions and 403 deletions
|
@ -2266,7 +2266,7 @@ void QCBUILTIN PF_fread (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals
|
|||
void QCBUILTIN PF_fseek (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||
{
|
||||
int fnum = G_FLOAT(OFS_PARM0) - FIRST_QC_FILE_INDEX;
|
||||
G_INT(OFS_PARM1) = 0;
|
||||
G_INT(OFS_RETURN) = -1;
|
||||
if (fnum < 0 || fnum >= MAX_QC_FILES)
|
||||
{
|
||||
PF_Warningf(prinst, "PF_fread: File out of range\n");
|
||||
|
@ -2283,16 +2283,16 @@ void QCBUILTIN PF_fseek (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals
|
|||
return; //this just isn't ours.
|
||||
}
|
||||
|
||||
G_INT(OFS_PARM1) = pf_fopen_files[fnum].ofs;
|
||||
if (prinst->callargc>1 && G_INT(OFS_PARM0) >= 0)
|
||||
G_INT(OFS_RETURN) = pf_fopen_files[fnum].ofs;
|
||||
if (prinst->callargc>1 && G_INT(OFS_PARM1) >= 0)
|
||||
{
|
||||
pf_fopen_files[fnum].ofs = G_INT(OFS_PARM0);
|
||||
pf_fopen_files[fnum].ofs = G_INT(OFS_PARM1);
|
||||
}
|
||||
}
|
||||
void QCBUILTIN PF_fsize (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||
{
|
||||
int fnum = G_FLOAT(OFS_PARM0) - FIRST_QC_FILE_INDEX;
|
||||
G_INT(OFS_PARM1) = 0;
|
||||
G_INT(OFS_RETURN) = -1;
|
||||
if (fnum < 0 || fnum >= MAX_QC_FILES)
|
||||
{
|
||||
PF_Warningf(prinst, "PF_fsize: File out of range\n");
|
||||
|
@ -2309,10 +2309,10 @@ void QCBUILTIN PF_fsize (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals
|
|||
return; //this just isn't ours.
|
||||
}
|
||||
|
||||
G_INT(OFS_PARM1) = pf_fopen_files[fnum].len;
|
||||
if (prinst->callargc>1 && G_INT(OFS_PARM0) >= 0)
|
||||
G_INT(OFS_RETURN) = pf_fopen_files[fnum].len;
|
||||
if (prinst->callargc>1 && G_INT(OFS_PARM1) >= 0)
|
||||
{
|
||||
size_t newlen = G_INT(OFS_PARM0);
|
||||
size_t newlen = G_INT(OFS_PARM1);
|
||||
PF_fresizebuffer_internal(&pf_fopen_files[fnum], newlen);
|
||||
pf_fopen_files[fnum].len = min(pf_fopen_files[fnum].bufferlen, newlen);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue