From 99317a9e9a63acb69e2e56000a7dba153d87c468 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 3 Sep 2013 18:19:48 -0500 Subject: [PATCH] Make cgame's tcmd use trap_SendClientCommand for "gc" gc command was forwarded to server after if wasn't recognized locally, but let's just send straight to server. (trap_SendConsoleCommand should of had a \n at end, but using trap_SendClientCommand makes more sense.) --- code/cgame/cg_consolecmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/cg_consolecmds.c b/code/cgame/cg_consolecmds.c index 991ab574..4c9affad 100644 --- a/code/cgame/cg_consolecmds.c +++ b/code/cgame/cg_consolecmds.c @@ -41,7 +41,7 @@ void CG_TargetCommand_f( void ) { } trap_Argv( 1, test, 4 ); - trap_SendConsoleCommand( va( "gc %i %i", targetNum, atoi( test ) ) ); + trap_SendClientCommand( va( "gc %i %i", targetNum, atoi( test ) ) ); }