1
0
Fork 0
forked from fte/fteqw

Botclient ucmd.angles are now correct, but the bot is still facing the wrong way.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2714 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-10-05 16:05:33 +00:00
parent fb99c6f501
commit a07ed00f94

View file

@ -2035,9 +2035,9 @@ qboolean SV_Physics (void)
oldmovement[2] = sv_player->xv->movement[2];
ucmd.msec = host_frametime*1000;
ucmd.angles[0] = sv_player->v->angles[0] * (65535/360.0f);
ucmd.angles[1] = sv_player->v->angles[1] * (65535/360.0f);
ucmd.angles[2] = sv_player->v->angles[2] * (65535/360.0f);
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.forwardmove = sv_player->xv->movement[0];
ucmd.sidemove = sv_player->xv->movement[1];
ucmd.upmove = sv_player->xv->movement[2];