X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Finterpolate.qc;h=831ce95e9eb34432f8082f7ad9be84ffa6166a7b;hp=7600fdde606f5d7a5c6733c0f2822b448140d806;hb=243779445dc4a2c35354ecd17d304f62c1547a7b;hpb=851ab495d483b5ba07011e3bc5c4ad520a17050f;ds=sidebyside diff --git a/qcsrc/lib/csqcmodel/interpolate.qc b/qcsrc/lib/csqcmodel/interpolate.qc index 7600fdde60..831ce95e9e 100644 --- a/qcsrc/lib/csqcmodel/interpolate.qc +++ b/qcsrc/lib/csqcmodel/interpolate.qc @@ -48,11 +48,11 @@ void InterpolateOrigin_Note(entity this) this.iorigin2 = this.origin; } - if (this.iflags & IFLAG_AUTOANGLES + if ((this.iflags & IFLAG_AUTOANGLES) && this.iorigin2 != this.iorigin1) this.angles = vectoangles(this.iorigin2 - this.iorigin1); - if (this.iflags & IFLAG_AUTOVELOCITY + if ((this.iflags & IFLAG_AUTOVELOCITY) && this.itime2 != this.itime1) this.velocity = (this.iorigin2 - this.iorigin1) * (1.0 / (this.itime2 - this.itime1));