diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-04 21:14:54 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-04 21:14:54 +0100 |
commit | 24ad650eb3e0153e288d854188ae7697ddb6bec1 (patch) | |
tree | b9d6d871ba0e0978c351d66a4840f5251da8b44a | |
parent | more utils (diff) | |
parent | Merge pull request #342 from Nick007J/master (diff) | |
download | re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar.gz re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar.bz2 re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar.lz re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar.xz re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.tar.zst re3-24ad650eb3e0153e288d854188ae7697ddb6bec1.zip |
-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); |