mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Fix one bug, but doesn't fix all screenshots being saved to qf0000.tga...
This commit is contained in:
parent
f5cf955f21
commit
c6b6c7926f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue