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
This commit is contained in:
Spoike 2005-09-08 01:43:29 +00:00
parent a49ca96a5a
commit d84b66752b

View file

@ -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;