From da714ef282ef605d70cf2b081eba0967eb6e554f Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Mon, 21 Sep 2020 22:40:39 -0400 Subject: [PATCH] cl_cmd: Remove redundant code --- cl_cmd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cl_cmd.c b/cl_cmd.c index c7918be1..21fc3e89 100644 --- 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 -- 2.39.2