mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue