MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CL_ForwardToServer_f

Function CL_ForwardToServer_f

code/client/cl_main.cpp:337–347  ·  view source on GitHub ↗

================== CL_ForwardToServer_f ================== */

Source from the content-addressed store, hash-verified

335==================
336*/
337void CL_ForwardToServer_f( void ) {
338 if ( cls.state != CA_ACTIVE ) {
339 Com_Printf ("Not connected to a server.\n");
340 return;
341 }
342
343 // don't forward the first argument
344 if ( Cmd_Argc() > 1 ) {
345 CL_AddReliableCommand( Cmd_Args() );
346 }
347}
348
349/*
350==================

Callers

nothing calls this directly

Calls 4

CL_AddReliableCommandFunction · 0.70
Com_PrintfFunction · 0.50
Cmd_ArgcFunction · 0.50
Cmd_ArgsFunction · 0.50

Tested by

no test coverage detected