summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-01 17:35:04 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-01 17:35:04 +0200
commitabef04c6376cb45946ea363df20fbe6473a2252c (patch)
treedaa75bd4ac0ae3337b75b2484472139b77abf8a2 /src/core/Cam.cpp
parentDrawStandardMenus, VC menu array and minor fixes (diff)
parenthanim fix (diff)
downloadre3-abef04c6376cb45946ea363df20fbe6473a2252c.tar
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.gz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.bz2
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.lz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.xz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.zst
re3-abef04c6376cb45946ea363df20fbe6473a2252c.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 1c74598c..fe2c250f 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -3778,7 +3778,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
if(FindPlayerVehicle())
FindPlayerVehicle()->Teleport(Source);
else
- CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
+ CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
}
// stay inside sectors
@@ -3845,8 +3845,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
if(FindPlayerVehicle())
FindPlayerVehicle()->Teleport(Source);
else
- CWorld::Players[CWorld::PlayerInFocus].m_pPed->GetPosition() = Source;
-
+ CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
}
// stay inside sectors