mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 22:34:07 +00:00
Fix some Collision NaN/inf's
This commit is contained in:
parent
9c2f067403
commit
be88a42bad
2 changed files with 23 additions and 6 deletions
|
@ -452,10 +452,10 @@ CWorld::ProcessVerticalLineSector(CSector §or, const CColLine &line, CColPoi
|
|||
}
|
||||
|
||||
bool
|
||||
CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CColPoint &point, float &dist,
|
||||
CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CColPoint &point, float &mindist,
|
||||
CEntity *&entity, bool ignoreSeeThrough, CStoredCollPoly *poly)
|
||||
{
|
||||
float mindist = dist;
|
||||
float dist = mindist;
|
||||
CPtrNode *node;
|
||||
CEntity *e;
|
||||
CColModel *colmodel;
|
||||
|
@ -472,8 +472,8 @@ CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CCol
|
|||
}
|
||||
}
|
||||
|
||||
if(mindist < dist) {
|
||||
dist = mindist;
|
||||
if(dist < mindist) {
|
||||
mindist = dist;
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue