mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 23:44:09 +00:00
CClumpModelInfo; little fixes
This commit is contained in:
parent
f0442960a2
commit
1b936f6ffb
6 changed files with 62 additions and 49 deletions
|
@ -382,7 +382,11 @@ CWorld::ProcessVerticalLine(const CVector &point1, float z2, CColPoint &point, C
|
|||
{
|
||||
AdvanceCurrentScanCode();
|
||||
CVector point2(point1.x, point1.y, z2);
|
||||
return ProcessVerticalLineSector(*GetSector(GetSectorIndexX(point1.x), GetSectorIndexY(point1.y)),
|
||||
int secX = GetSectorIndexX(point1.x);
|
||||
int secY = GetSectorIndexY(point1.y);
|
||||
secX = clamp(secX, 0, NUMSECTORS_X-1);
|
||||
secY = clamp(secY, 0, NUMSECTORS_Y-1);
|
||||
return ProcessVerticalLineSector(*GetSector(secX, secY),
|
||||
CColLine(point1, point2), point, entity, checkBuildings, checkVehicles,
|
||||
checkPeds, checkObjects, checkDummies, ignoreSeeThrough, poly);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue