mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 23:39:00 +00:00
fixed dummyobject bug
This commit is contained in:
parent
de68d726a3
commit
8c13eab30a
1 changed files with 2 additions and 2 deletions
|
@ -973,7 +973,7 @@ CPopulation::ConvertToDummyObject(CObject *obj)
|
||||||
if (!dummy)
|
if (!dummy)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dummy->GetMatrix() = obj->GetMatrix();
|
dummy->GetMatrix() = obj->m_objectMatrix;
|
||||||
dummy->GetMatrix().UpdateRW();
|
dummy->GetMatrix().UpdateRW();
|
||||||
dummy->UpdateRwFrame();
|
dummy->UpdateRwFrame();
|
||||||
|
|
||||||
|
@ -998,7 +998,7 @@ bool
|
||||||
CPopulation::TestRoomForDummyObject(CObject *obj)
|
CPopulation::TestRoomForDummyObject(CObject *obj)
|
||||||
{
|
{
|
||||||
int16 collidingObjs;
|
int16 collidingObjs;
|
||||||
CWorld::FindObjectsKindaColliding(obj->GetPosition(),
|
CWorld::FindObjectsKindaColliding(obj->m_objectMatrix.GetPosition(),
|
||||||
CModelInfo::GetModelInfo(obj->m_modelIndex)->GetColModel()->boundingSphere.radius,
|
CModelInfo::GetModelInfo(obj->m_modelIndex)->GetColModel()->boundingSphere.radius,
|
||||||
false, &collidingObjs, 2, nil, false, true, true, false, false);
|
false, &collidingObjs, 2, nil, false, true, true, false, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue