Skip to content

Commit 87ca9d9

Browse files
committed
fix pragma disable
1 parent 8857d00 commit 87ca9d9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/game/shared/util_shared.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,9 +1837,10 @@ int UTIL_CalcFrustumThroughConvexPolygon( const Vector *pPolyVertices, int iPoly
18371837
i3 = (iMinSideFirstPoint + 1)%(iOldVertCount);
18381838
i4 = (iMinSideFirstPoint + 2)%(iOldVertCount);
18391839

1840-
#pragma warning disable C4459 // declaration of 'p4' hides global declaration
1840+
#pragma warning(push)
1841+
#pragma warning(disable: 4459) // declaration of 'p4' hides global declaration
18411842
Vector *p1, *p2, *p3, *p4;
1842-
#pragma warning restore C4459
1843+
#pragma warning(pop)
18431844
p1 = &pClippedVerts[i1];
18441845
p2 = &pClippedVerts[i2];
18451846
p3 = &pClippedVerts[i3]; //this is the one we'll actually be dropping in the merge

0 commit comments

Comments
 (0)