From d71b0609f06c12123c1d80447019231d3f51b520 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 Feb 2013 09:41:54 +0000 Subject: [PATCH] - fixed incorrect -= operators in vectors.h SVN r4138 (trunk) --- src/vectors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vectors.h b/src/vectors.h index c0783e250..e340194da 100644 --- a/src/vectors.h +++ b/src/vectors.h @@ -439,7 +439,7 @@ struct TVector3 // Vector subtraction TVector3 &operator-= (const TVector3 &other) { - X -= other.X, Y -= other.Y, Z - other.Z; + X -= other.X, Y -= other.Y, Z -= other.Z; return *this; } @@ -485,7 +485,7 @@ struct TVector3 { return Vector2(v2.X - v3.X, v2.Y - v3.Y); } - +F // Vector length double Length() const { @@ -1166,7 +1166,7 @@ struct TRotator // Vector subtraction TRotator &operator-= (const TRotator &other) { - Pitch -= other.Pitch, Yaw -= other.Yaw, Roll - other.Roll; + Pitch -= other.Pitch, Yaw -= other.Yaw, Roll -= other.Roll; return *this; }