mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- Make walltype::normalAngle()
normalise the returned value.
This commit is contained in:
parent
7fe82690a7
commit
9906586569
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ struct walltype
|
|||
walltype* point2Wall() const;
|
||||
DVector2 delta() const { return point2Wall()->pos - pos; }
|
||||
DVector2 center() const { return(point2Wall()->pos + pos) / 2; }
|
||||
DAngle normalAngle() const { return delta().Angle() + DAngle90; }
|
||||
DAngle normalAngle() const { return (delta().Angle() + DAngle90).Normalized360(); }
|
||||
bool twoSided() const { return nextsector >= 0; }
|
||||
double Length();
|
||||
void calcLength(); // this is deliberately not inlined and stored in a file where it can't be found at compile time.
|
||||
|
|
Loading…
Reference in a new issue