From: Mario Date: Sat, 25 Jan 2020 17:55:55 +0000 (+1000) Subject: Add some missing parenthesis X-Git-Tag: xonotic-v0.8.5~1110^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=243779445dc4a2c35354ecd17d304f62c1547a7b;p=xonotic%2Fxonotic-data.pk3dir.git Add some missing parenthesis --- diff --git a/qcsrc/lib/csqcmodel/interpolate.qc b/qcsrc/lib/csqcmodel/interpolate.qc index 7600fdde6..831ce95e9 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));