Navigation Menu

Skip to content

Commit

Permalink
- Make walltype::normalAngle() normalise the returned value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr4077au committed Mar 24, 2023
1 parent 7fe8269 commit 9906586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/maptypes.h
Expand Up @@ -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.
Expand Down

0 comments on commit 9906586

Please sign in to comment.