From 243779445dc4a2c35354ecd17d304f62c1547a7b Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 26 Jan 2020 03:55:55 +1000 Subject: [PATCH 1/1] Add some missing parenthesis --- qcsrc/lib/csqcmodel/interpolate.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.39.2