diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-30 13:48:01 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 15:13:09 +0300 |
commit | d23b2c423e5811cf6e9de28cbf8490de32ea4fb5 (patch) | |
tree | 0240b530a05679dc6d629c414f59bf56588a93b2 /src/peds/Ped.cpp | |
parent | a1c1be7af9f5ecee8f89db35b802a7874afc5c41 (diff) |
SetPosition, part 1
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r-- | src/peds/Ped.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index f81ffb71..20fa93da 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -2401,7 +2401,7 @@ void CPed::Teleport(CVector pos) { CWorld::Remove(this); - GetPosition() = pos; + SetPosition(pos); bIsStanding = false; m_nPedStateTimer = 0; m_actionX = 0.0f; @@ -3222,7 +3222,7 @@ CPed::TurnBody(void) bool turnDone = true; if (m_pLookTarget) { - CVector &lookPos = m_pLookTarget->GetPosition(); + const CVector &lookPos = m_pLookTarget->GetPosition(); lookDir = CGeneral::GetRadianAngleBetweenPoints( lookPos.x, |