diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-04 21:13:45 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-04 21:13:45 +0100 |
commit | 8c13eab30a8f84ed49418c46f2120528471c6fd7 (patch) | |
tree | c4729ff12f1e31d64983f4dcddb654c3b1c80f9e /src | |
parent | Merge pull request #340 from erorcun/erorcun (diff) | |
download | re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar.gz re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar.bz2 re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar.lz re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar.xz re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.tar.zst re3-8c13eab30a8f84ed49418c46f2120528471c6fd7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/peds/Population.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 6b15d8c7..bcbe7794 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -973,7 +973,7 @@ CPopulation::ConvertToDummyObject(CObject *obj) if (!dummy) return; - dummy->GetMatrix() = obj->GetMatrix(); + dummy->GetMatrix() = obj->m_objectMatrix; dummy->GetMatrix().UpdateRW(); dummy->UpdateRwFrame(); @@ -998,7 +998,7 @@ bool CPopulation::TestRoomForDummyObject(CObject *obj) { int16 collidingObjs; - CWorld::FindObjectsKindaColliding(obj->GetPosition(), + CWorld::FindObjectsKindaColliding(obj->m_objectMatrix.GetPosition(), CModelInfo::GetModelInfo(obj->m_modelIndex)->GetColModel()->boundingSphere.radius, false, &collidingObjs, 2, nil, false, true, true, false, false); |