From d84b66752bee8500b3a441857baab322c2420d21 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 8 Sep 2005 01:43:29 +0000 Subject: [PATCH] Fix double printing of say commands when recording an mvd. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1282 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_user.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 6f0461c49..811a72102 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -1814,6 +1814,8 @@ void SV_Say (qboolean team) qboolean sent[MAX_CLIENTS]; //so we don't send to the same splitscreen connection twice. (it's ugly) int cln; + qboolean mvdrecording; + char *s, *s2; if (Cmd_Argc () < 2) @@ -1914,6 +1916,8 @@ void SV_Say (qboolean team) Sys_Printf ("%s", text); + mvdrecording = sv.mvdrecording; + sv.mvdrecording = false; //so that the SV_ClientPrintf doesn't send to all players. for (j = 0, client = svs.clients; j < MAX_CLIENTS; j++, client++) { if (client->state != cs_spawned && client->state != cs_connected) @@ -1949,6 +1953,7 @@ void SV_Say (qboolean team) SV_ClientPrintf(client, PRINT_CHAT, "%s", text); } + sv.mvdrecording = mvdrecording; if (!sv.mvdrecording || !cls) return;