From 39920968d8cb27088512a35cb923aa23a63f9495 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 28 Aug 2000 02:53:06 +0000 Subject: [PATCH] quakeNN.{tga,pcx} -> nuqNNN.{tga,pcx} another external mention of quake goes away and also gives us 1000 screenshots instead of 100 --- source/gl_screen.c | 9 +++++---- source/screen.c | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/source/gl_screen.c b/source/gl_screen.c index 4f512bd..9c34045 100644 --- a/source/gl_screen.c +++ b/source/gl_screen.c @@ -662,12 +662,13 @@ void SCR_ScreenShot_f (void) // // 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[6] = i%10 + '0'; + pcxname[3] = i / 100 + '0'; + pcxname[4] = i / 10 % 10 + '0'; + pcxname[5] = i % 10 + '0'; snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname); if (Sys_FileTime(checkname) == -1) break; // file doesn't exist diff --git a/source/screen.c b/source/screen.c index 57d9471..944fd2e 100644 --- a/source/screen.c +++ b/source/screen.c @@ -645,12 +645,13 @@ void SCR_ScreenShot_f (void) // // 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[6] = i%10 + '0'; + pcxname[3] = i / 100 + '0'; + pcxname[4] = i / 10 % 10 + '0'; + pcxname[5] = i % 10 + '0'; snprintf (checkname, sizeof(checkname), "%s/%s", com_gamedir, pcxname); if (Sys_FileTime(checkname) == -1) break; // file doesn't exist