mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
don't use qfs_gamedir->* in QFS_NextFilename as it gets passed that in the
template (and shouldn't assume where to put the file anyway:). fixes the all screenshots saves sas qf0000.tga bug.
This commit is contained in:
parent
c6b6c7926f
commit
8d470d2b49
1 changed files with 1 additions and 2 deletions
|
@ -1271,8 +1271,7 @@ QFS_NextFilename (dstring_t *filename, const char *prefix, const char *ext)
|
||||||
digits[1] = i / 100 % 10 + '0';
|
digits[1] = i / 100 % 10 + '0';
|
||||||
digits[2] = i / 10 % 10 + '0';
|
digits[2] = i / 10 % 10 + '0';
|
||||||
digits[3] = i % 10 + '0';
|
digits[3] = i % 10 + '0';
|
||||||
if (Sys_FileTime (va ("%s/%s/%s", qfs_userpath, qfs_gamedir->dir.def,
|
if (Sys_FileTime (va ("%s/%s/%s", qfs_userpath, filename->str)) == -1)
|
||||||
filename->str)) == -1)
|
|
||||||
return 1; // file doesn't exist
|
return 1; // file doesn't exist
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue