mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
This fixes cuffs so they work with realtime resets.
Tim McGrath (Misty)
This commit is contained in:
parent
8aa98c0d20
commit
8f2b541b25
3 changed files with 3 additions and 3 deletions
|
@ -580,7 +580,7 @@ SV_Cuff_f (void)
|
|||
if (!cl->state)
|
||||
continue;
|
||||
if (all || (cl->userid == uid)) {
|
||||
cl->cuff_time = realtime + mins*60.0;
|
||||
cl->cuff_time = (Sys_DoubleTime () + mins*60.0);
|
||||
done = true;
|
||||
if (mins) {
|
||||
sprintf(text,
|
||||
|
|
|
@ -1642,7 +1642,7 @@ SV_SavePenaltyFilter (client_t *cl, filtertype_t type, double pentime)
|
|||
{
|
||||
int i;
|
||||
byte *b;
|
||||
if (pentime < realtime) // no point
|
||||
if (pentime < Sys_DoubleTime () ) // no point
|
||||
return;
|
||||
|
||||
b = cl->netchan.remote_address.ip;
|
||||
|
|
|
@ -1505,7 +1505,7 @@ SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
SVfloat (sv_player, button2) = (ucmd->buttons & 2) >> 1;
|
||||
if (ucmd->impulse)
|
||||
SVfloat (sv_player, impulse) = ucmd->impulse;
|
||||
if (host_client->cuff_time > realtime)
|
||||
if (host_client->cuff_time > Sys_DoubleTime() )
|
||||
SVfloat (sv_player, button0) = SVfloat (sv_player, impulse) = 0;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue