Use fromDeg for angle of 0.

This commit is contained in:
Ru5tK1ng 2024-03-04 22:04:49 -06:00 committed by Christoph Oelckers
parent e62651e3cf
commit 631eb5847b

View file

@ -1271,7 +1271,7 @@ int P_IsVisible(AActor *lookee, AActor *other, INTBOOL allaround, FLookExParams
{ {
maxdist = params->maxDist; maxdist = params->maxDist;
mindist = params->minDist; mindist = params->minDist;
fov = allaround ? 0 : params->Fov; // [RK] Account for LOOKALLAROUND flag. fov = allaround ? DAngle::fromDeg(0.) : params->Fov; // [RK] Account for LOOKALLAROUND flag.
} }
else else
{ {