From: Rudolf Polzer Date: Mon, 16 Jan 2012 14:17:00 +0000 (+0100) Subject: properly factor in the previous error X-Git-Tag: xonotic-v0.6.0~157^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b519cedcc916d53eb5a7c7412b498672fd8bab43;p=xonotic%2Fxonotic-data.pk3dir.git properly factor in the previous error --- 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; }