]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update ticrate before calling player prediction code
authorMario <mario.mario@y7mail.com>
Tue, 14 Jan 2020 17:18:22 +0000 (03:18 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 14 Jan 2020 17:18:22 +0000 (03:18 +1000)
qcsrc/client/view.qc

index 22618d6431d61f1419d60eac34612a039f588565..34ddaef5046b436deb94f818cdda13d7a0d8ac80 100644 (file)
@@ -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)