]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cl_cmd: Remove redundant code
authorCloudwalk <cloudwalk009@gmail.com>
Tue, 22 Sep 2020 02:40:39 +0000 (22:40 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Tue, 22 Sep 2020 02:40:39 +0000 (22:40 -0400)
cl_cmd.c

index c7918be14039a30067e5c861ced6fb5d94549a58..21fc3e89ff953e8fef835c5baae9d055371da467 100644 (file)
--- a/cl_cmd.c
+++ b/cl_cmd.c
@@ -64,10 +64,8 @@ void CL_ForwardToServer (const char *s)
        // LadyHavoc: thanks to Fuh for bringing the pure evil of SZ_Print to my
        // attention, it has been eradicated from here, its only (former) use in
        // all of darkplaces.
-       if (cls.protocol == &protocol_quakeworld)
-               MSG_WriteByte(&cls.netcon->message, clc_stringcmd);
-       else
-               MSG_WriteByte(&cls.netcon->message, clc_stringcmd);
+       MSG_WriteByte(&cls.netcon->message, clc_stringcmd);
+
        if ((!strncmp(s, "say ", 4) || !strncmp(s, "say_team ", 9)) && cl_locs_enable.integer)
        {
                // say/say_team commands can replace % character codes with status info