From 6bee280789ee4b76cba99fa28db98e8e0592b8db Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 15 Jan 2020 03:18:22 +1000 Subject: [PATCH] Update ticrate before calling player prediction code --- qcsrc/client/view.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 22618d643..34ddaef50 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -2329,6 +2329,8 @@ void CSQC_UpdateView(entity this, float w, float h) vid_width = vf_size.x; vid_height = vf_size.y; + ticrate = STAT(MOVEVARS_TICRATE) * STAT(MOVEVARS_TIMESCALE); + WaypointSprite_Load(); CSQCPlayer_SetCamera(); @@ -2339,8 +2341,6 @@ void CSQC_UpdateView(entity this, float w, float h) current_player = player_localnum; myteam = entcs_GetTeam(current_player); - ticrate = STAT(MOVEVARS_TICRATE) * STAT(MOVEVARS_TIMESCALE); - // abused multiple places below entity local_player = ((csqcplayer) ? csqcplayer : CSQCModel_server2csqc(player_localentnum - 1)); if(!local_player) -- 2.39.2