mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 09:59:06 +00:00
garages fix
This commit is contained in:
parent
1afe36d0d0
commit
615bd1e878
1 changed files with 2 additions and 2 deletions
|
@ -1509,7 +1509,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex)
|
||||||
if (bIsDummy) {
|
if (bIsDummy) {
|
||||||
if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex((CDummy*)pDoor)))
|
if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex((CDummy*)pDoor)))
|
||||||
return true;
|
return true;
|
||||||
if (nIndex != CPools::GetDummyPool()->GetIndex((CDummy*)pDoor))
|
if (nIndex != (CPools::GetDummyPool()->GetIndex((CDummy*)pDoor) & 0x7F))
|
||||||
bNeedToFindDoorEntities = true;
|
bNeedToFindDoorEntities = true;
|
||||||
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
|
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
|
||||||
return true;
|
return true;
|
||||||
|
@ -1517,7 +1517,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex)
|
||||||
else {
|
else {
|
||||||
if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex((CObject*)pDoor)))
|
if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex((CObject*)pDoor)))
|
||||||
return true;
|
return true;
|
||||||
if (nIndex != CPools::GetObjectPool()->GetIndex((CObject*)pDoor))
|
if (nIndex != (CPools::GetObjectPool()->GetIndex((CObject*)pDoor) & 0x7F))
|
||||||
bNeedToFindDoorEntities = true;
|
bNeedToFindDoorEntities = true;
|
||||||
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
|
if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex()))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue