From 6d07a560a662b336b6c35105b37b6323d0c3ad8b Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 18 Mar 2008 02:14:35 +0000 Subject: fixed so that you can bind chat to enter and it still works --- src/game/server/gs_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/server') diff --git a/src/game/server/gs_server.cpp b/src/game/server/gs_server.cpp index 816e2531..049268c6 100644 --- a/src/game/server/gs_server.cpp +++ b/src/game/server/gs_server.cpp @@ -2070,13 +2070,12 @@ void mods_message(int msgtype, int client_id) if(msgtype == NETMSGTYPE_CL_SAY) { NETMSG_CL_SAY *msg = (NETMSG_CL_SAY *)rawmsg; - int team = msg->team; if(team) team = players[client_id].team; else team = -1; - send_chat(client_id, msg->team, msg->message); + send_chat(client_id, team, msg->message); } else if (msgtype == NETMSGTYPE_CL_SETTEAM) { -- cgit 1.4.1