From: cloudwalk Date: Wed, 12 Aug 2020 14:54:10 +0000 (+0000) Subject: sv_ccmds: Remove some more client-specific forward-to-server code X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=75335b2e9796a9fc2c035e317322aff770f1987e;p=xonotic%2Fdarkplaces.git sv_ccmds: Remove some more client-specific forward-to-server code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12900 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_ccmds.c b/sv_ccmds.c index b5b55bf3..5ff2f3ce 100644 --- a/sv_ccmds.c +++ b/sv_ccmds.c @@ -453,16 +453,8 @@ static void SV_Say(cmd_state_t *cmd, qboolean teamonly) if (cmd->source == src_command) { - if (cls.state == ca_dedicated) - { - fromServer = true; - teamonly = false; - } - else - { - CL_ForwardToServer_f(cmd); - return; - } + fromServer = true; + teamonly = false; } if (Cmd_Argc (cmd) < 2) @@ -530,15 +522,7 @@ static void SV_Tell_f(cmd_state_t *cmd) qboolean fromServer = false; if (cmd->source == src_command) - { - if (cls.state == ca_dedicated) - fromServer = true; - else - { - CL_ForwardToServer_f(cmd); - return; - } - } + fromServer = true; if (Cmd_Argc (cmd) < 2) return; @@ -659,15 +643,7 @@ static void SV_Ping_f(cmd_state_t *cmd) void (*print) (const char *fmt, ...); if (cmd->source == src_command) - { - // if running a client, try to send over network so the client's ping report parser will see the report - if (cls.state == ca_connected) - { - CL_ForwardToServer_f(cmd); - return; - } print = Con_Printf; - } else print = SV_ClientPrintf;