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:
Bill Currie 2000-08-28 02:53:06 +00:00
parent 76e84b6995
commit 39920968d8
2 changed files with 10 additions and 8 deletions

View file

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

View file

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