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:
Bill Currie 2003-06-06 15:44:13 +00:00
parent c6b6c7926f
commit 8d470d2b49

View file

@ -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;