From 72485da491b7c79fbe19147da1b58e15d4ce1da7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 25 May 2025 03:22:19 +0500 Subject: [PATCH] engine: client: make demo recording and demo removing command privileged --- engine/client/cl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 50b49afb..9e55b7a6 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3462,10 +3462,10 @@ static void CL_InitLocal( void ) Cmd_AddRestrictedCommand ("userinfo", CL_SetInfo_f, "examine or change the userinfo string (alias of setinfo)" ); Cmd_AddCommand ("physinfo", CL_Physinfo_f, "print current client physinfo" ); Cmd_AddCommand ("disconnect", CL_Disconnect_f, "disconnect from server" ); - Cmd_AddCommand ("record", CL_Record_f, "record a demo" ); + Cmd_AddRestrictedCommand( "record", CL_Record_f, "record a demo" ); Cmd_AddCommand ("playdemo", CL_PlayDemo_f, "play a demo" ); Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "demo benchmark" ); - Cmd_AddCommand ("killdemo", CL_DeleteDemo_f, "delete a specified demo file" ); + Cmd_AddRestrictedCommand( "killdemo", CL_DeleteDemo_f, "delete a specified demo file" ); Cmd_AddCommand ("startdemos", CL_StartDemos_f, "start playing back the selected demos sequentially" ); Cmd_AddCommand ("demos", CL_Demos_f, "restart looping demos defined by the last startdemos command" ); Cmd_AddCommand ("movie", CL_PlayVideo_f, "play a movie" );