mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-10 15:50:35 +00:00
Various fixes
This commit is contained in:
parent
db78035f47
commit
812b9e7eda
5 changed files with 17 additions and 12 deletions
|
@ -1050,7 +1050,7 @@ CPopulation::TestSafeForRealObject(CDummyObject *dummy)
|
|||
if (maxY >= NUMSECTORS_Y) maxY = NUMSECTORS_Y;
|
||||
#endif
|
||||
|
||||
static CColPoint aTempColPoints;
|
||||
static CColPoint aTempColPoints[MAX_COLLISION_POINTS];
|
||||
|
||||
for (int curY = minY; curY <= maxY; curY++) {
|
||||
for (int curX = minX; curX <= maxX; curX++) {
|
||||
|
@ -1061,7 +1061,7 @@ CPopulation::TestSafeForRealObject(CDummyObject *dummy)
|
|||
if (veh->m_scanCode != CWorld::GetCurrentScanCode()) {
|
||||
if (veh->GetIsTouching(colCentre, colRadius)) {
|
||||
veh->m_scanCode = CWorld::GetCurrentScanCode();
|
||||
if (CCollision::ProcessColModels(dummy->GetMatrix(), *dummyCol, veh->GetMatrix(), *veh->GetColModel(), &aTempColPoints, nil, nil) > 0)
|
||||
if (CCollision::ProcessColModels(dummy->GetMatrix(), *dummyCol, veh->GetMatrix(), *veh->GetColModel(), aTempColPoints, nil, nil) > 0)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -1072,7 +1072,7 @@ CPopulation::TestSafeForRealObject(CDummyObject *dummy)
|
|||
if (veh->m_scanCode != CWorld::GetCurrentScanCode()) {
|
||||
if (veh->GetIsTouching(colCentre, colRadius)) {
|
||||
veh->m_scanCode = CWorld::GetCurrentScanCode();
|
||||
if (CCollision::ProcessColModels(dummy->GetMatrix(), *dummyCol, veh->GetMatrix(), *veh->GetColModel(), &aTempColPoints, nil, nil) > 0)
|
||||
if (CCollision::ProcessColModels(dummy->GetMatrix(), *dummyCol, veh->GetMatrix(), *veh->GetColModel(), aTempColPoints, nil, nil) > 0)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue