This fixes cuffs so they work with realtime resets.

Tim McGrath (Misty)
This commit is contained in:
Timothy C. McGrath 2002-06-06 22:41:34 +00:00
parent 8aa98c0d20
commit 8f2b541b25
3 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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;

View file

@ -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;
//