mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
a little ws cleanup
This commit is contained in:
parent
eb9deb1f33
commit
a38f854210
1 changed files with 121 additions and 122 deletions
|
@ -1431,7 +1431,8 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
host_client->msecs += ucmd->msec;
|
||||
|
||||
if ((sv_timekick->value >= 1) &&
|
||||
(tmp_time = realtime - host_client->last_check) >= sv_timekick_interval->value) {
|
||||
(tmp_time = realtime - host_client->last_check) >=
|
||||
sv_timekick_interval->value) {
|
||||
tmp_time *= (1000 + sv_timekick_fuzz->value);
|
||||
if (host_client->msecs > (int) tmp_time) {
|
||||
host_client->msec_cheating++;
|
||||
|
@ -1507,7 +1508,7 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
|
||||
for (i=0 ; i<3 ; i++)
|
||||
pmove.origin[i] = sv_player->v.origin[i] + (sv_player->v.mins[i]
|
||||
- player_mins[i]);
|
||||
- player_mins[i]);
|
||||
VectorCopy (sv_player->v.velocity, pmove.velocity);
|
||||
VectorCopy (sv_player->v.v_angle, pmove.angles);
|
||||
|
||||
|
@ -1537,13 +1538,12 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
{
|
||||
int before, after;
|
||||
|
||||
before = PM_TestPlayerPosition (pmove.origin);
|
||||
before = PM_TestPlayerPosition (pmove.origin);
|
||||
PlayerMove ();
|
||||
after = PM_TestPlayerPosition (pmove.origin);
|
||||
after = PM_TestPlayerPosition (pmove.origin);
|
||||
|
||||
if (sv_player->v.health > 0 && before && !after )
|
||||
Con_Printf ("player %s got stuck in playermove!!!!\n", host_client->name
|
||||
);
|
||||
if (sv_player->v.health > 0 && before && !after )
|
||||
Con_Printf ("player %s got stuck in playermove!!!!\n", host_client->name);
|
||||
}
|
||||
#else
|
||||
PlayerMove ();
|
||||
|
@ -1560,8 +1560,7 @@ if (sv_player->v.health > 0 && before && !after )
|
|||
sv_player->v.flags = (int)sv_player->v.flags & ~FL_ONGROUND;
|
||||
}
|
||||
for (i=0 ; i<3 ; i++)
|
||||
sv_player->v.origin[i] = pmove.origin[i] - (sv_player->v.mins[i]
|
||||
- player_mins[i]);
|
||||
sv_player->v.origin[i] = pmove.origin[i] - (sv_player->v.mins[i] - player_mins[i]);
|
||||
|
||||
#if 0
|
||||
// truncate velocity the same way the net protocol will
|
||||
|
|
Loading…
Reference in a new issue