mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
You can now save 1000 screenshots, they'll be named qf000 to qf999...
Why you'd want 1000 screenshots I have no idea, but I did hit the limit of 100 when I was trying to get good screenshots of the rocket stuff..
This commit is contained in:
parent
e605302b38
commit
a842501f0d
2 changed files with 13 additions and 10 deletions
|
@ -673,17 +673,19 @@ void SCR_ScreenShot_f (void)
|
|||
//
|
||||
// find a file name to save it to
|
||||
//
|
||||
strcpy(pcxname,"quake00.tga");
|
||||
strcpy(pcxname,"qf000.tga");
|
||||
|
||||
for (i=0 ; i<=99 ; i++)
|
||||
for (i=0 ; i<=999 ; i++)
|
||||
{
|
||||
pcxname[5] = i/10 + '0';
|
||||
pcxname[6] = i%10 + '0';
|
||||
pcxname[2] = i / 100 + '0';
|
||||
pcxname[3] = i / 10 % 10 + '0';
|
||||
pcxname[4] = i % 10 + '0';
|
||||
|
||||
snprintf(checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
||||
if (Sys_FileTime(checkname) == -1)
|
||||
break; // file doesn't exist
|
||||
}
|
||||
if (i==100)
|
||||
if (i==1000)
|
||||
{
|
||||
Con_Printf ("SCR_ScreenShot_f: Couldn't create a PCX file\n");
|
||||
return;
|
||||
|
|
|
@ -741,17 +741,18 @@ void SCR_ScreenShot_f (void)
|
|||
//
|
||||
// find a file name to save it to
|
||||
//
|
||||
strcpy(pcxname,"quake00.pcx");
|
||||
strcpy(pcxname,"qf000.pcx");
|
||||
|
||||
for (i=0 ; i<=99 ; i++)
|
||||
for (i=0 ; i<=999 ; i++)
|
||||
{
|
||||
pcxname[5] = i/10 + '0';
|
||||
pcxname[6] = i%10 + '0';
|
||||
pcxname[2] = i / 100 + '0';
|
||||
pcxname[3] = i / 10 % 10 + '0';
|
||||
pcxname[4] = i % 10 + '0';
|
||||
snprintf(checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
||||
if (Sys_FileTime(checkname) == -1)
|
||||
break; // file doesn't exist
|
||||
}
|
||||
if (i==100)
|
||||
if (i==1000)
|
||||
{
|
||||
Con_Printf ("SCR_ScreenShot_f: Couldn't create a PCX");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue