mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 15:59:01 +00:00
Merge remote-tracking branch 'samler/world' into Standalone
This commit is contained in:
commit
c8af08330a
1 changed files with 10 additions and 8 deletions
|
@ -753,6 +753,7 @@ CWorld::FindObjectsOfTypeInRangeSectorList(uint32 modelId, CPtrList &list, const
|
||||||
CEntity *pEntity = (CEntity *)pNode->item;
|
CEntity *pEntity = (CEntity *)pNode->item;
|
||||||
if(pEntity->m_scanCode != GetCurrentScanCode()) {
|
if(pEntity->m_scanCode != GetCurrentScanCode()) {
|
||||||
pEntity->m_scanCode = GetCurrentScanCode();
|
pEntity->m_scanCode = GetCurrentScanCode();
|
||||||
|
if(modelId == pEntity->m_modelIndex) {
|
||||||
float fMagnitude = 0.0f;
|
float fMagnitude = 0.0f;
|
||||||
if(bCheck2DOnly)
|
if(bCheck2DOnly)
|
||||||
fMagnitude = (position - pEntity->GetPosition()).MagnitudeSqr2D();
|
fMagnitude = (position - pEntity->GetPosition()).MagnitudeSqr2D();
|
||||||
|
@ -764,6 +765,7 @@ CWorld::FindObjectsOfTypeInRangeSectorList(uint32 modelId, CPtrList &list, const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue