diff --git a/source/gl_screen.c b/source/gl_screen.c index c529245..e21cdc2 100644 --- a/source/gl_screen.c +++ b/source/gl_screen.c @@ -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; diff --git a/source/screen.c b/source/screen.c index 5f9e29e..1668b5b 100644 --- a/source/screen.c +++ b/source/screen.c @@ -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;