mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 23:54:35 +00:00
- fixed incorrect -= operators in vectors.h
SVN r4138 (trunk)
This commit is contained in:
parent
facbca3619
commit
d71b0609f0
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue