From 8bd49fe30b8663a27e1103f149f6f836866bbfc8 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 15 Jun 2009 13:01:04 +0000 Subject: some clean up. fixed double server side record messages --- src/game/server/gamecontext.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/server/gamecontext.cpp') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 9e53d6ff..736d437f 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -193,8 +193,13 @@ void GAMECONTEXT::send_chat(int chatter_cid, int team, const char *text) msg.team = 1; msg.cid = chatter_cid; msg.message = text; - msg.pack(MSGFLAG_VITAL); + + // pack one for the recording only + msg.pack(MSGFLAG_VITAL|MSGFLAG_NOSEND); + server_send_msg(-1); + // send to the clients + msg.pack(MSGFLAG_VITAL|MSGFLAG_NORECORD); for(int i = 0; i < MAX_CLIENTS; i++) { if(game.players[i] && game.players[i]->team == team) -- cgit 1.4.1