summaryrefslogtreecommitdiffstats
path: root/src/core/AnimViewer.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-05 13:40:56 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-05 13:40:56 +0200
commitee261c996b6864ad65f086d97cdb47469c10a651 (patch)
treef594437503cd2ef4116e9b8c8b6560b970c77541 /src/core/AnimViewer.cpp
parentCAutoPilot + CCarAI + fixes (diff)
parentSetPosition, final part (diff)
downloadre3-ee261c996b6864ad65f086d97cdb47469c10a651.tar
re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.gz
re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.bz2
re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.lz
re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.xz
re3-ee261c996b6864ad65f086d97cdb47469c10a651.tar.zst
re3-ee261c996b6864ad65f086d97cdb47469c10a651.zip
Diffstat (limited to 'src/core/AnimViewer.cpp')
-rw-r--r--src/core/AnimViewer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp
index 7afda509..b4763627 100644
--- a/src/core/AnimViewer.cpp
+++ b/src/core/AnimViewer.cpp
@@ -108,7 +108,7 @@ CAnimViewer::Initialise(void) {
CTimeCycle::Initialise();
CCarCtrl::Init();
CPlayerPed *player = new CPlayerPed();
- player->GetPosition() = CVector(0.0f, 0.0f, 0.0f);
+ player->SetPosition(0.0f, 0.0f, 0.0f);
CWorld::Players[0].m_pPed = player;
CDraw::SetFOV(120.0f);
CDraw::ms_fLODDistance = 500.0f;
@@ -292,14 +292,14 @@ CAnimViewer::Update(void)
}
newEntity->bIsStuck = true;
}
- newEntity->GetPosition() = CVector(0.0f, 0.0f, 0.0f);
+ newEntity->SetPosition(0.0f, 0.0f, 0.0f);
CWorld::Add(newEntity);
TheCamera.TakeControl(pTarget, CCam::MODE_MODELVIEW, JUMP_CUT, CAMCONTROL_SCRIPT);
}
if (pTarget->IsVehicle() || pTarget->IsPed() || pTarget->IsObject()) {
((CPhysical*)pTarget)->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
}
- pTarget->GetPosition().z = 0.0f;
+ pTarget->GetMatrix().GetPosition().z = 0.0f;
if (modelInfo->m_type != MITYPE_PED) {