mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Be less weird with regard to botclients and qw physics.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5625 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e38b1faa3e
commit
a777ea642e
1 changed files with 6 additions and 15 deletions
|
@ -7174,9 +7174,9 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean recurse)
|
|||
|
||||
if (host_client->state && host_client->protocol != SCP_BAD)
|
||||
{
|
||||
sv_player->xv->movement[0] = ucmd->forwardmove * host_frametime;
|
||||
sv_player->xv->movement[1] = ucmd->sidemove * host_frametime;
|
||||
sv_player->xv->movement[2] = ucmd->upmove * host_frametime;
|
||||
sv_player->xv->movement[0] = ucmd->forwardmove;
|
||||
sv_player->xv->movement[1] = ucmd->sidemove;
|
||||
sv_player->xv->movement[2] = ucmd->upmove;
|
||||
}
|
||||
|
||||
WPhys_CheckVelocity(&sv.world, (wedict_t*)sv_player);
|
||||
|
@ -7284,18 +7284,9 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean recurse)
|
|||
ucmd->angles[1] = (int)(sv_player->v->v_angle[1] * (65535/360.0f));
|
||||
ucmd->angles[2] = (int)(sv_player->v->v_angle[2] * (65535/360.0f));
|
||||
|
||||
if (host_frametime)
|
||||
{
|
||||
ucmd->forwardmove = sv_player->xv->movement[0] / host_frametime;
|
||||
ucmd->sidemove = sv_player->xv->movement[1] / host_frametime;
|
||||
ucmd->upmove = sv_player->xv->movement[2] / host_frametime;
|
||||
}
|
||||
else
|
||||
{
|
||||
ucmd->forwardmove = 0;
|
||||
ucmd->sidemove = 0;
|
||||
ucmd->upmove = 0;
|
||||
}
|
||||
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