rename clamp macro to Clamp to fix compilation with g++11 (and clamp2 for consistency sake)
This commit is contained in:
@@ -399,8 +399,8 @@ CWorld::ProcessVerticalLine(const CVector &point1, float z2, CColPoint &point, C
|
||||
CVector point2(point1.x, point1.y, z2);
|
||||
int secX = GetSectorIndexX(point1.x);
|
||||
int secY = GetSectorIndexY(point1.y);
|
||||
secX = clamp(secX, 0, NUMSECTORS_X-1);
|
||||
secY = clamp(secY, 0, NUMSECTORS_Y-1);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user