]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
sv_ccmds: Remove some more client-specific forward-to-server code
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Aug 2020 14:54:10 +0000 (14:54 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Aug 2020 14:54:10 +0000 (14:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12900 d7cf8633-e32d-0410-b094-e92efae38249

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;