Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Made the FOV a little more exact (pulled the value from the game).
  • Loading branch information
michael-fadely committed Jul 29, 2015
1 parent 6bff5d6 commit d35a9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SADXModLoader/FixFOV.cpp
Expand Up @@ -116,8 +116,8 @@ void ConfigureFOV()
// Widescreen (16:9, 16:10, etc)
if ((height * default_ratio) < width)
{
fov_rads = DEG2RAD(55.4); // 55.4 /appears/ to be the default vertical FOV.
fov_bams = DEG2BAMS(55.4);
fov_rads = 0.96712852; // 55.412382 degrees
fov_bams = RAD2BAMS(fov_rads);

WriteJump(SetHorizontalFOV_BAMS, SetHorizontalFOV_BAMS_hook);
WriteJump(GetHorizontalFOV_BAMS, GetHorizontalFOV_BAMS_hook);
Expand Down

0 comments on commit d35a9d4

Please sign in to comment.