From ccefcfdb13f7eb08f0b176d844228b45b8b1216d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 3 Apr 2012 12:55:02 -0400 Subject: [PATCH] Fix an aspect ratio assumption --- .../Sources/Plasma/FeatureLib/pfCamera/plCameraBrain.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfCamera/plCameraBrain.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfCamera/plCameraBrain.cpp index 8f79f14d..8bbfb3f9 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfCamera/plCameraBrain.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfCamera/plCameraBrain.cpp @@ -71,13 +71,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "../plAvatar/plArmatureMod.h" #include "../plAvatar/plAvBrainHuman.h" #include "../plNetClient/plNetClientMgr.h" -//#define aspect_HDTV // maybe someday we'll be on the xbox... - -#ifdef aspect_HDTV -#define FOV_RATIO 1.78 -#else -#define FOV_RATIO 1.33333333 -#endif hsBool plCameraBrain1_FirstPerson::fDontFade = false; hsScalar plCameraBrain1::fFallAccel = 20.0f; @@ -257,7 +250,7 @@ void plCameraBrain1::IAnimateFOV(double time) dH = fFOVGoal; } - fCamera->SetFOVw( (hsScalar)(dH * FOV_RATIO) ); + fCamera->SetFOVw( (hsScalar)(dH * plVirtualCam1::GetAspectRatio()) ); fCamera->SetFOVh( dH ); }