From bee35a187349d3af5effc5722be88848090f0aa8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 13 Sep 2023 18:49:10 +0300 Subject: [PATCH] engine: client: do not check screenshots in base directory to guess the name --- engine/client/cl_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_cmds.c b/engine/client/cl_cmds.c index 5d7fdc6d..fdb693e1 100644 --- a/engine/client/cl_cmds.c +++ b/engine/client/cl_cmds.c @@ -206,7 +206,7 @@ void CL_ScreenShot_f( void ) if( !CL_ScreenshotGetName( i, checkname, sizeof( checkname ))) return; // no namespace - if( !FS_FileExists( checkname, false )) + if( !FS_FileExists( checkname, true )) break; } @@ -246,7 +246,7 @@ void CL_SnapShot_f( void ) if( !CL_SnapshotGetName( i, checkname, sizeof( checkname ))) return; // no namespace - if( !FS_FileExists( checkname, false )) + if( !FS_FileExists( checkname, true )) break; }