From 21c828d41625e411e307c9a4463b59c652c0f8b4 Mon Sep 17 00:00:00 2001 From: Scott Brooks Date: Tue, 17 Sep 2002 20:17:12 +0000 Subject: [PATCH] Fixed up the cg_rq3_autoaction to include the map name, and removed the player name since it was broken anyways --- reaction/cgame/cg_servercmds.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reaction/cgame/cg_servercmds.c b/reaction/cgame/cg_servercmds.c index 284bd9c7..c6fb5e49 100644 --- a/reaction/cgame/cg_servercmds.c +++ b/reaction/cgame/cg_servercmds.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.66 2002/09/17 20:17:12 blaze +// Fixed up the cg_rq3_autoaction to include the map name, and removed the player name since it was broken anyways +// // Revision 1.65 2002/08/28 18:52:09 jbravo // Added the Keanu male radio sound set. // @@ -1271,8 +1274,8 @@ void CG_RQ3_Cmd() case 1: case 3: trap_RealTime(&qtime); - Com_sprintf(scrnshotName, sizeof(scrnshotName), "record %d-%d-%d_%d-%d-%d\n", - qtime.tm_year + 1900, qtime.tm_mon + 1, qtime.tm_mday, qtime.tm_hour, qtime.tm_min, qtime.tm_sec); + Com_sprintf(scrnshotName, sizeof(scrnshotName), "record %d-%d-%d_%d-%d-%d%s\n", + qtime.tm_year + 1900, qtime.tm_mon + 1, qtime.tm_mday, qtime.tm_hour, qtime.tm_min, qtime.tm_sec,strstr(cgs.mapname,"/")); for (i = 0; i < MAX_QPATH; i++) { switch (scrnshotName[i]) { case '>': @@ -1312,9 +1315,9 @@ void CG_RQ3_Cmd() trap_RealTime(&qtime); Com_sprintf(playerName, sizeof(playerName), "%s", cgs.clientinfo->name); RemoveColorEscapeSequences(playerName); - Com_sprintf(scrnshotName, sizeof(scrnshotName), "screenshotjpeg %d-%d-%d_%d-%d-%d_%s_%s\n", + Com_sprintf(scrnshotName, sizeof(scrnshotName), "screenshotjpeg %d-%d-%d_%d-%d-%d%s\n", qtime.tm_year + 1900, qtime.tm_mon + 1, qtime.tm_mday, qtime.tm_hour, qtime.tm_min, - qtime.tm_sec, cgs.mapname, playerName); + qtime.tm_sec, strstr(cgs.mapname,"/")); for (i = 0; i < MAX_QPATH; i++) { switch (scrnshotName[i]) { case '>': @@ -1325,6 +1328,7 @@ void CG_RQ3_Cmd() case ':': case '\\': case '/': + case '&': case '|': scrnshotName[i] = '_'; break;