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:
Joseph Carter 2000-04-25 15:25:33 +00:00
parent e605302b38
commit a842501f0d
2 changed files with 13 additions and 10 deletions

View file

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

View file

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