diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-30 15:45:45 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-30 15:45:45 +0200 |
commit | 7d758f3a9f7ad9b46cc9ab296166365597898bf5 (patch) | |
tree | 906b8d3f86c6ee6969bc553b1ea73ed6386409f0 /src/core/AnimViewer.cpp | |
parent | Fix downloading from PR (diff) | |
download | re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.gz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.bz2 re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.lz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.xz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.zst re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.zip |
Diffstat (limited to 'src/core/AnimViewer.cpp')
-rw-r--r-- | src/core/AnimViewer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp index 36ea20b7..7afda509 100644 --- a/src/core/AnimViewer.cpp +++ b/src/core/AnimViewer.cpp @@ -278,7 +278,7 @@ CAnimViewer::Update(void) // } } else { newEntity = pTarget = new CAutomobile(modelId, RANDOM_VEHICLE); - newEntity->m_status = STATUS_ABANDONED; + newEntity->SetStatus(STATUS_ABANDONED); } newEntity->bIsStuck = true; } else if (modelInfo->m_type == MITYPE_PED) { @@ -296,7 +296,7 @@ CAnimViewer::Update(void) CWorld::Add(newEntity); TheCamera.TakeControl(pTarget, CCam::MODE_MODELVIEW, JUMP_CUT, CAMCONTROL_SCRIPT); } - if (pTarget->m_type == ENTITY_TYPE_VEHICLE || pTarget->m_type == ENTITY_TYPE_PED || pTarget->m_type == ENTITY_TYPE_OBJECT) { + if (pTarget->IsVehicle() || pTarget->IsPed() || pTarget->IsObject()) { ((CPhysical*)pTarget)->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f); } pTarget->GetPosition().z = 0.0f; |