Trying to get MVDs working again.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@572 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-05 15:19:11 +00:00
parent 799eec7a81
commit 0fd9cb8c9c

View file

@ -661,6 +661,10 @@ void SV_Soundlist_f (void)
*sv.demsound_precache[i] && host_client->netchan.message.cursize < (MAX_QWMSGLEN/2);
i++, n++)
MSG_WriteString (&host_client->netchan.message, sv.demsound_precache[i]);
if (!*sv.demsound_precache[i])
n = 0;
}
else
{
@ -668,14 +672,14 @@ void SV_Soundlist_f (void)
*sv.sound_precache[i] && host_client->netchan.message.cursize < (MAX_QWMSGLEN/2);
i++, n++)
MSG_WriteString (&host_client->netchan.message, sv.sound_precache[i]);
if (!*sv.sound_precache[i])
n = 0;
}
MSG_WriteByte (&host_client->netchan.message, 0);
// next msg
if (*sv.sound_precache[i])
MSG_WriteByte (&host_client->netchan.message, n);
else
MSG_WriteByte (&host_client->netchan.message, 0);
}
/*
@ -736,6 +740,9 @@ void SV_Modellist_f (void)
*sv.demmodel_precache[i] && ((n&255)==0||host_client->netchan.message.cursize < (MAX_QWMSGLEN/2));
i++, n++)
MSG_WriteString (&host_client->netchan.message, sv.demmodel_precache[i]);
if (!*sv.demmodel_precache[i])
n = 0;
}
else
{
@ -743,15 +750,15 @@ void SV_Modellist_f (void)
*sv.model_precache[i] && (((n&255)==0)||(host_client->netchan.message.cursize < (MAX_QWMSGLEN/2))); //make sure we don't send a 0 next...
i++, n++)
MSG_WriteString (&host_client->netchan.message, sv.model_precache[i]);
if (!*sv.model_precache[i])
n = 0;
}
MSG_WriteByte (&host_client->netchan.message, 0);
// next msg
if ((sv.democausesreconnect && *sv.demmodel_precache[i]) || (!sv.democausesreconnect && *sv.model_precache[i]))
MSG_WriteByte (&host_client->netchan.message, n);
else
MSG_WriteByte (&host_client->netchan.message, 0);
}
/*
@ -2735,6 +2742,8 @@ void SV_ExecuteUserCommand (char *s, qboolean fromQC)
ucmd_t *u;
client_t *oldhost = host_client;
Con_DPrintf("Client command: %s\n", s);
Cmd_TokenizeString (s);
sv_player = host_client->edict;
@ -3205,7 +3214,7 @@ void SVNQ_ExecuteUserCommand (char *s)
{
if (!strcmp (Cmd_Argv(0), u->name) )
{
if (!fromQC && !u->noqchandling)
if (/*!fromQC && */!u->noqchandling)
if (PR_UserCmd(s))
{
host_client = oldhost;