From f1a81a5611371c85fa17f050bcda90178968eb26 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Wed, 8 Apr 2020 04:43:02 +0200 Subject: [PATCH] SV_Frame(int _usec_) instead of msec it's microseconds, not milliseconds. --- src/common/header/common.h | 2 +- src/server/sv_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/header/common.h b/src/common/header/common.h index 323da9dc..48ee02a3 100644 --- a/src/common/header/common.h +++ b/src/common/header/common.h @@ -788,7 +788,7 @@ void SCR_BeginLoadingPlaque(void); void SV_Init(void); void SV_Shutdown(char *finalmsg, qboolean reconnect); -void SV_Frame(int msec); +void SV_Frame(int usec); /* ======================================================================= */ diff --git a/src/server/sv_main.c b/src/server/sv_main.c index 515de67d..af2b655f 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -374,7 +374,7 @@ SV_RunGameFrame(void) } void -SV_Frame(int msec) +SV_Frame(int usec) { #ifndef DEDICATED_ONLY time_before_game = time_after_game = 0; @@ -386,7 +386,7 @@ SV_Frame(int msec) return; } - svs.realtime += msec / 1000; + svs.realtime += usec / 1000; /* keep the random time dependent */ randk();