Fixed a spam bug when watching mvds

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2544 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-07-23 12:04:26 +00:00
parent 9af21d3741
commit 5a496fe19e
1 changed files with 7 additions and 4 deletions

View File

@ -490,10 +490,13 @@ void Cam_Track(int pnum, usercmd_t *cmd)
VectorCopy(player->viewangles, cl.viewangles[pnum]);
if (memcmp(player->origin, &self->origin, sizeof(player->origin)) != 0)
{
MSG_WriteByte (&cls.netchan.message, clc_tmove);
MSG_WriteCoord (&cls.netchan.message, player->origin[0]);
MSG_WriteCoord (&cls.netchan.message, player->origin[1]);
MSG_WriteCoord (&cls.netchan.message, player->origin[2]);
if (!cls.demoplayback)
{
MSG_WriteByte (&cls.netchan.message, clc_tmove);
MSG_WriteCoord (&cls.netchan.message, player->origin[0]);
MSG_WriteCoord (&cls.netchan.message, player->origin[1]);
MSG_WriteCoord (&cls.netchan.message, player->origin[2]);
}
// move there locally immediately
VectorCopy(player->origin, self->origin);
}