mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-11 10:18:00 +08:00
Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2.
This commit is contained in:
1 parent
b9b7f08197
commit
3e7f7bdabd
300 files changed
+1041
-1084
No files matched your search
@@ -185,9 +185,9 @@ void PatchSampleData_AddSample( CPatch *pPatch, int ndxPatch )
|
||||
|
||||
// Make sure mins are smaller than maxs so we don't iterate for 4 bil.
|
||||
Assert( patchSampleMins[0] <= patchSampleMaxs[0] && patchSampleMins[1] <= patchSampleMaxs[1] && patchSampleMins[2] <= patchSampleMaxs[2] );
|
||||
patchSampleMins[0] = min( patchSampleMins[0], patchSampleMaxs[0] );
|
||||
patchSampleMins[1] = min( patchSampleMins[1], patchSampleMaxs[1] );
|
||||
patchSampleMins[2] = min( patchSampleMins[2], patchSampleMaxs[2] );
|
||||
patchSampleMins[0] = MIN( patchSampleMins[0], patchSampleMaxs[0] );
|
||||
patchSampleMins[1] = MIN( patchSampleMins[1], patchSampleMaxs[1] );
|
||||
patchSampleMins[2] = MIN( patchSampleMins[2], patchSampleMaxs[2] );
|
||||
|
||||
int iterateCoords[3];
|
||||
for ( iterateCoords[0]=patchSampleMins[0]; iterateCoords[0] <= patchSampleMaxs[0]; iterateCoords[0]++ )
|
||||
|
||||
Reference in new issue
Block a user