mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
Workaround for broken bot angles.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2742 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
612674fc53
commit
306a02204b
2 changed files with 7 additions and 7 deletions
|
@ -1321,15 +1321,15 @@ void SV_WritePlayerToClient(sizebuf_t *msg, clstate_t *ent)
|
|||
else
|
||||
{
|
||||
memset(&cmd, 0, sizeof(cmd));
|
||||
cmd.angles[0] = ent->angles[0] * 65535/360.0f;
|
||||
cmd.angles[1] = ent->angles[1] * 65535/360.0f;
|
||||
cmd.angles[2] = ent->angles[2] * 65535/360.0f;
|
||||
cmd.angles[0] = (int)(ent->angles[0] * 65535/360.0f);
|
||||
cmd.angles[1] = (int)(ent->angles[1] * 65535/360.0f);
|
||||
cmd.angles[2] = (int)(ent->angles[2] * 65535/360.0f);
|
||||
}
|
||||
|
||||
if (ent->health <= 0)
|
||||
{ // don't show the corpse looking around...
|
||||
cmd.angles[0] = 0;
|
||||
cmd.angles[1] = ent->angles[1]*65535/360;
|
||||
cmd.angles[1] = (int)(ent->angles[1]*65535/360);
|
||||
cmd.angles[2] = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -2032,9 +2032,9 @@ qboolean SV_Physics (void)
|
|||
SV_PreRunCmd();
|
||||
|
||||
ucmd.msec = host_frametime*1000;
|
||||
ucmd.angles[0] = (unsigned short)(sv_player->v->angles[0] * (65535/360.0f));
|
||||
ucmd.angles[1] = (unsigned short)(sv_player->v->angles[1] * (65535/360.0f));
|
||||
ucmd.angles[2] = (unsigned short)(sv_player->v->angles[2] * (65535/360.0f));
|
||||
ucmd.angles[0] = (int)(sv_player->v->angles[0] * (65535/360.0f));
|
||||
ucmd.angles[1] = (int)(sv_player->v->angles[1] * (65535/360.0f));
|
||||
ucmd.angles[2] = (int)(sv_player->v->angles[2] * (65535/360.0f));
|
||||
ucmd.forwardmove = sv_player->xv->movement[0];
|
||||
ucmd.sidemove = sv_player->xv->movement[1];
|
||||
ucmd.upmove = sv_player->xv->movement[2];
|
||||
|
|
Loading…
Reference in a new issue