Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fixed dummyobject bug
  • Loading branch information
Nick007J committed Mar 4, 2020
1 parent de68d72 commit 8c13eab30a8f84ed49418c46f2120528471c6fd7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 8c13eab

Please sign in to comment.