about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-15 13:01:04 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-15 13:01:04 +0000
commit8bd49fe30b8663a27e1103f149f6f836866bbfc8 (patch)
tree4243fc55ca2b3a00d765cc4754c8732d2fc422e1 /src/game/server
parentf817cb231999e51d6721d2b2a3c95d985b08d836 (diff)
downloadzcatch-8bd49fe30b8663a27e1103f149f6f836866bbfc8.tar.gz
zcatch-8bd49fe30b8663a27e1103f149f6f836866bbfc8.zip
some clean up. fixed double server side record messages
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/gamecontext.cpp7
1 files changed, 6 insertions, 1 deletions
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)