]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
properly factor in the previous error
authorRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 14:17:00 +0000 (15:17 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 14:17:00 +0000 (15:17 +0100)
qcsrc/csqcmodellib/cl_player.qc

index a11b3962b26bb8fda38ca4d314f8cfe7d7cbae62..40ba3f7a9f73c4d0a283dc6578b54a396211f00e 100644 (file)
@@ -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;
 }