Skip to content

Commit

Permalink
Missed a line in RenderOrthoNoFog
Browse files Browse the repository at this point in the history
Tying up the fov fix.
  • Loading branch information
dileepvr authored and madame-rachelle committed Oct 18, 2024
1 parent c38b119 commit 6e7148b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ void HWDrawInfo::RenderOrthoNoFog()
double vxdbl = Viewpoint.camera->X();
double vydbl = Viewpoint.camera->Y();
double ext = Viewpoint.camera->ViewPos->Offset.Length() ?
3.0 * Viewpoint.camera->ViewPos->Offset.Length() : 100.0;
3.0 * Viewpoint.camera->ViewPos->Offset.Length() * tan (Viewpoint.FieldOfView.Radians()*0.5) : 100.0;
FBoundingBox viewbox(vxdbl, vydbl, ext);

for (unsigned int kk = 0; kk < Level->subsectors.Size(); kk++)
Expand Down

0 comments on commit 6e7148b

Please sign in to comment.