- blocked off direct access to TAngle’s internal storage.

This commit is contained in:
Christoph Oelckers 2022-08-26 17:38:48 +02:00
commit 4032576519
31 changed files with 123 additions and 235 deletions

View file

@ -1015,10 +1015,10 @@ bool AActor::IsInsideVisibleAngles() const
if (p == nullptr || p->camera == nullptr)
return true;
DAngle anglestart = DAngle::fromDeg(VisibleStartAngle.Degrees);
DAngle angleend = DAngle::fromDeg(VisibleEndAngle.Degrees);
DAngle pitchstart = DAngle::fromDeg(VisibleStartPitch.Degrees);
DAngle pitchend = DAngle::fromDeg(VisibleEndPitch.Degrees);
DAngle anglestart = DAngle::fromDeg(VisibleStartAngle.Degrees());
DAngle angleend = DAngle::fromDeg(VisibleEndAngle.Degrees());
DAngle pitchstart = DAngle::fromDeg(VisibleStartPitch.Degrees());
DAngle pitchend = DAngle::fromDeg(VisibleEndPitch.Degrees());
if (anglestart > angleend)
{