From: Mario Date: Tue, 14 Jan 2020 17:18:22 +0000 (+1000) Subject: Update ticrate before calling player prediction code X-Git-Tag: xonotic-v0.8.5~1105^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6bee280789ee4b76cba99fa28db98e8e0592b8db;p=xonotic%2Fxonotic-data.pk3dir.git Update ticrate before calling player prediction code --- 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)