summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:10 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:10 +0200
commit9e65eb34ec834de082154ee7559cd1c418f02ae6 (patch)
treec0c12ec094feb67e7ad98c5e8d48440b37035421 /src/core/Camera.cpp
parentmissing ifded (diff)
downloadre3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.gz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.bz2
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.lz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.xz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.zst
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.zip
Diffstat (limited to '')
-rw-r--r--src/core/Camera.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index 6747ebf5..202d481d 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -71,11 +71,27 @@ bool bDidWeProcessAnyCinemaCam;
#define CTRLDOWN(key) ((KEYDOWN(rsLCTRL) || KEYDOWN(rsRCTRL)) && KEYDOWN((RsKeyCodes)key))
#endif
+CCamera::CCamera(void)
+{
+#ifdef GTA3_1_1_PATCH
+ m_fMouseAccelHorzntl = 0.0025f;
+ m_fMouseAccelVertical = 0.003f;
+#endif
+ Init();
+}
+
void
CCamera::Init(void)
{
+#ifdef GTA3_1_1_PATCH
+ float fMouseAccelHorzntl = m_fMouseAccelHorzntl;
+ float fMouseAccelVertical = m_fMouseAccelVertical;
+#endif
memset(this, 0, sizeof(CCamera)); // getting rid of vtable, eh?
-
+#ifdef GTA3_1_1_PATCH
+ m_fMouseAccelHorzntl = fMouseAccelHorzntl;
+ m_fMouseAccelVertical = fMouseAccelVertical;
+#endif
m_pRwCamera = nil;
m_1rstPersonRunCloseToAWall = false;
m_fPositionAlongSpline = 0.0f;
@@ -191,8 +207,10 @@ CCamera::Init(void)
m_uiTransitionState = 0;
m_uiTimeTransitionStart = 0;
m_bLookingAtPlayer = true;
+#ifndef GTA3_1_1_PATCH
m_fMouseAccelHorzntl = 0.0025f;
m_fMouseAccelVertical = 0.003f;
+#endif
m_f3rdPersonCHairMultX = 0.53f;
m_f3rdPersonCHairMultY = 0.4f;
}