From: Cloudwalk Date: Tue, 22 Sep 2020 02:40:39 +0000 (-0400) Subject: cl_cmd: Remove redundant code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da714ef282ef605d70cf2b081eba0967eb6e554f;p=xonotic%2Fdarkplaces.git cl_cmd: Remove redundant code --- 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