]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_ccmds.c
sv_ccmds: Remove some more client-specific forward-to-server code
[xonotic/darkplaces.git] / sv_ccmds.c
index b5b55bf38d129f2fd7a33e80ad130cfc8de6a525..5ff2f3ce127be102d7df1598f896b83bed14e16b 100644 (file)
@@ -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;