mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
bring knghtbrd's 1000 screenshot patch over from oldtree.
This commit is contained in:
parent
abbe2c19f3
commit
381891e7e4
2 changed files with 11 additions and 9 deletions
|
@ -675,17 +675,18 @@ 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;
|
||||
|
|
|
@ -693,17 +693,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++)
|
||||
{
|
||||
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