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.)
This commit is contained in:
1 parent
c79e0dfc25
commit
99317a9e9a
1 file changed
+1
-1
@@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user