mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Merged in "Fix an Aspect Ratio Assumption" (http://foundry.openuru.org/fisheye/cru/CWE-11)
Fix an Aspect Ratio Assumption
This commit is contained in:
@ -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 );
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user