summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-01 20:32:24 +0200
committerGitHub <noreply@github.com>2020-06-01 20:32:24 +0200
commit21afcd8767791278bef5df9fa071af0427588a59 (patch)
treec080d424e33307c3237431da6e9c303645d23008 /src/core/Cam.cpp
parentMerge pull request #608 from Nick007J/miami (diff)
parentCAutomobile done (diff)
downloadre3-21afcd8767791278bef5df9fa071af0427588a59.tar
re3-21afcd8767791278bef5df9fa071af0427588a59.tar.gz
re3-21afcd8767791278bef5df9fa071af0427588a59.tar.bz2
re3-21afcd8767791278bef5df9fa071af0427588a59.tar.lz
re3-21afcd8767791278bef5df9fa071af0427588a59.tar.xz
re3-21afcd8767791278bef5df9fa071af0427588a59.tar.zst
re3-21afcd8767791278bef5df9fa071af0427588a59.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