From b519cedcc916d53eb5a7c7412b498672fd8bab43 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 16 Jan 2012 15:17:00 +0100 Subject: [PATCH] properly factor in the previous error --- qcsrc/csqcmodellib/cl_player.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/csqcmodellib/cl_player.qc b/qcsrc/csqcmodellib/cl_player.qc index a11b3962b..40ba3f7a9 100644 --- a/qcsrc/csqcmodellib/cl_player.qc +++ b/qcsrc/csqcmodellib/cl_player.qc @@ -68,9 +68,9 @@ void CSQCPlayer_SetPredictionError(vector o, vector v) if(vlen(o) > 32 || vlen(v) > 128) return; - csqcplayer_predictionerrorfactor = autocvar_cl_predictionerrorcompensation / ticrate; csqcplayer_predictionerroro = CSQCPlayer_GetPredictionErrorO() + o; csqcplayer_predictionerrorv = CSQCPlayer_GetPredictionErrorV() + v; + csqcplayer_predictionerrorfactor = autocvar_cl_predictionerrorcompensation / ticrate; csqcplayer_predictionerrortime = time + 1.0 / csqcplayer_predictionerrorfactor; } -- 2.39.2