Fix one bug, but doesn't fix all screenshots being saved to qf0000.tga...

This commit is contained in:
Ragnvald Maartmann-Moe IV 2003-06-06 12:35:52 +00:00
parent f5cf955f21
commit c6b6c7926f

View file

@ -1265,12 +1265,12 @@ QFS_NextFilename (dstring_t *filename, const char *prefix, const char *ext)
dsprintf (filename, "%s0000%s", prefix, ext);
digits = filename->str + strlen (prefix);
for (i = 0; i <= 9999; i++) {
digits[0] = i / 1000 + '0';
digits[1] = i / 100 % 10 + '0';
digits[1] = i / 10 % 10 + '0';
digits[2] = i % 10 + '0';
digits[2] = i / 10 % 10 + '0';
digits[3] = i % 10 + '0';
if (Sys_FileTime (va ("%s/%s/%s", qfs_userpath, qfs_gamedir->dir.def,
filename->str)) == -1)
return 1; // file doesn't exist