summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-24 01:59:30 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-24 02:05:48 +0200
commit4870d9a31be6302037eb7ddcf0b99ea25ebccabc (patch)
tree51090b47226f961387b2aa5969b133d23d9b4f5e /src/core/Cam.cpp
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar.gz
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar.bz2
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar.lz
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar.xz
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.tar.zst
re3-4870d9a31be6302037eb7ddcf0b99ea25ebccabc.zip
Diffstat (limited to '')
-rw-r--r--src/core/Cam.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 24d32511..d465fb5d 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -1596,7 +1596,7 @@ CCam::Process_FollowPedWithMouse(const CVector &CameraTarget, float TargetOrient
CWorld::pIgnoreEntity = nil;
float ViewPlaneHeight = Tan(DEGTORAD(FOV) / 2.0f);
- float ViewPlaneWidth = ViewPlaneHeight * CDraw::FindAspectRatio() * fTweakFOV;
+ float ViewPlaneWidth = ViewPlaneHeight * CDraw::CalculateAspectRatio() * fTweakFOV;
float Near = RwCameraGetNearClipPlane(Scene.camera);
float radius = ViewPlaneWidth*Near;
entity = CWorld::TestSphereAgainstWorld(Source + Front*Near, radius, nil, true, true, false, true, false, false);
@@ -4574,7 +4574,7 @@ CCam::Process_FollowPed_Rotation(const CVector &CameraTarget, float TargetOrient
CWorld::pIgnoreEntity = nil;
float ViewPlaneHeight = Tan(DEGTORAD(FOV) / 2.0f);
- float ViewPlaneWidth = ViewPlaneHeight * CDraw::FindAspectRatio() * fTweakFOV;
+ float ViewPlaneWidth = ViewPlaneHeight * CDraw::CalculateAspectRatio() * fTweakFOV;
float Near = RwCameraGetNearClipPlane(Scene.camera);
float radius = ViewPlaneWidth*Near;
entity = CWorld::TestSphereAgainstWorld(Source + Front*Near, radius, nil, true, true, false, true, false, false);