- fixed incorrect -= operators in vectors.h

SVN r4138 (trunk)
This commit is contained in:
Christoph Oelckers 2013-02-16 09:41:54 +00:00
parent facbca3619
commit d71b0609f0

View file

@ -439,7 +439,7 @@ struct TVector3
// Vector subtraction // Vector subtraction
TVector3 &operator-= (const TVector3 &other) 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; return *this;
} }
@ -485,7 +485,7 @@ struct TVector3
{ {
return Vector2(v2.X - v3.X, v2.Y - v3.Y); return Vector2(v2.X - v3.X, v2.Y - v3.Y);
} }
F
// Vector length // Vector length
double Length() const double Length() const
{ {
@ -1166,7 +1166,7 @@ struct TRotator
// Vector subtraction // Vector subtraction
TRotator &operator-= (const TRotator &other) 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; return *this;
} }