Skip to content

Commit

Permalink
Use fromDeg for angle of 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru5tK1ng authored and coelckers committed Mar 17, 2024
1 parent e62651e commit 631eb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_enemy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ int P_IsVisible(AActor *lookee, AActor *other, INTBOOL allaround, FLookExParams
{
maxdist = params->maxDist;
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
{
Expand Down

0 comments on commit 631eb58

Please sign in to comment.