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: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=243779445dc4a2c35354ecd17d304f62c1547a7b;hp=851ab495d483b5ba07011e3bc5c4ad520a17050f Add some missing parenthesis --- 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));