mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-28 23:01:53 +00:00
quakeNN.{tga,pcx} -> nuqNNN.{tga,pcx}
another external mention of quake goes away and also gives us 1000 screenshots instead of 100
This commit is contained in:
parent
76e84b6995
commit
39920968d8
2 changed files with 10 additions and 8 deletions
|
@ -662,12 +662,13 @@ void SCR_ScreenShot_f (void)
|
||||||
//
|
//
|
||||||
// find a file name to save it to
|
// find a file name to save it to
|
||||||
//
|
//
|
||||||
strcpy(pcxname,"quake00.tga");
|
strcpy(pcxname,"nuq000.tga");
|
||||||
|
|
||||||
for (i=0 ; i<=99 ; i++)
|
for (i=0 ; i<=999 ; i++)
|
||||||
{
|
{
|
||||||
pcxname[5] = i/10 + '0';
|
pcxname[3] = i / 100 + '0';
|
||||||
pcxname[6] = i%10 + '0';
|
pcxname[4] = i / 10 % 10 + '0';
|
||||||
|
pcxname[5] = i % 10 + '0';
|
||||||
snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
||||||
if (Sys_FileTime(checkname) == -1)
|
if (Sys_FileTime(checkname) == -1)
|
||||||
break; // file doesn't exist
|
break; // file doesn't exist
|
||||||
|
|
|
@ -645,12 +645,13 @@ void SCR_ScreenShot_f (void)
|
||||||
//
|
//
|
||||||
// find a file name to save it to
|
// find a file name to save it to
|
||||||
//
|
//
|
||||||
strcpy(pcxname,"quake00.pcx");
|
strcpy(pcxname,"nuq000.pcx");
|
||||||
|
|
||||||
for (i=0 ; i<=99 ; i++)
|
for (i=0 ; i<=999 ; i++)
|
||||||
{
|
{
|
||||||
pcxname[5] = i/10 + '0';
|
pcxname[3] = i / 100 + '0';
|
||||||
pcxname[6] = i%10 + '0';
|
pcxname[4] = i / 10 % 10 + '0';
|
||||||
|
pcxname[5] = i % 10 + '0';
|
||||||
snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname);
|
||||||
if (Sys_FileTime(checkname) == -1)
|
if (Sys_FileTime(checkname) == -1)
|
||||||
break; // file doesn't exist
|
break; // file doesn't exist
|
||||||
|
|
Loading…
Reference in a new issue