diff --git a/qw/source/sv_ccmds.c b/qw/source/sv_ccmds.c index 82eebac34..74d1f4d22 100644 --- a/qw/source/sv_ccmds.c +++ b/qw/source/sv_ccmds.c @@ -639,7 +639,7 @@ SV_Mute_f (void) if (!cl->state) continue; if (all || (cl->userid == uid)) { - cl->lockedtill = realtime + mins*60.0; + cl->lockedtill = (Sys_DoubleTime () + mins*60.0); done = true; if (mins) { sprintf(text, "You are muted for %.1f minutes\n\n" diff --git a/qw/source/sv_user.c b/qw/source/sv_user.c index a8c41d9ce..ac78924fd 100644 --- a/qw/source/sv_user.c +++ b/qw/source/sv_user.c @@ -798,10 +798,11 @@ SV_Say (qboolean team) } if (fp_messages) { - if (!sv.paused && realtime < host_client->lockedtill) { + if (!sv.paused && Sys_DoubleTime () < host_client->lockedtill) { SV_ClientPrintf (host_client, PRINT_CHAT, - "You can't talk for %d more seconds\n", - (int) (host_client->lockedtill - realtime)); + "You can't talk for %d more seconds\n", + (int) (host_client->lockedtill - + Sys_DoubleTime () )); return; } tmp = host_client->whensaidhead - fp_messages + 1; @@ -810,7 +811,7 @@ SV_Say (qboolean team) if (!sv.paused && host_client->whensaid[tmp] && (realtime - host_client->whensaid[tmp] < fp_persecond)) { - host_client->lockedtill = realtime + fp_secondsdead; + host_client->lockedtill = Sys_DoubleTime () + fp_secondsdead; if (fp_msg[0]) SV_ClientPrintf (host_client, PRINT_CHAT, "FloodProt: %s\n", fp_msg);