@ -151,7 +151,7 @@ BOOL CBasePlayerWeapon::DefaultReload( int iClipSize, int iAnim, float fDelay, i
@@ -151,7 +151,7 @@ BOOL CBasePlayerWeapon::DefaultReload( int iClipSize, int iAnim, float fDelay, i
@ -793,12 +793,12 @@ void inline CalcBounds( int &Lower, int &Upper, int Goal, int Best )
@@ -793,12 +793,12 @@ void inline CalcBounds( int &Lower, int &Upper, int Goal, int Best )
intTemp=2*Goal-Best;
if(Best>Goal)
{
Lower=max(0,Temp);
Lower=Q_max(0,Temp);
Upper=Best;
}
else
{
Upper=min(255,Temp);
Upper=Q_min(255,Temp);
Lower=Best;
}
}
@ -962,7 +962,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@@ -962,7 +962,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
}
}
for(i=max(m_minY,halfY+1);i<=m_maxY;i++)
for(i=Q_max(m_minY,halfY+1);i<=m_maxY;i++)
{
for(j=m_RangeStart[1][i];j<=m_RangeEnd[1][i];j++)
{
@ -987,7 +987,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@@ -987,7 +987,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
}
}
for(i=min(m_maxZ,halfZ);i>=m_minZ;i--)
for(i=Q_min(m_maxZ,halfZ);i>=m_minZ;i--)
{
for(j=m_RangeStart[2][i];j<=m_RangeEnd[2][i];j++)
{
@ -1012,7 +1012,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@@ -1012,7 +1012,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
}
}
for(i=max(m_minX,halfX+1);i<=m_maxX;i++)
for(i=Q_max(m_minX,halfX+1);i<=m_maxX;i++)
{
for(j=m_RangeStart[0][i];j<=m_RangeEnd[0][i];j++)
{
@ -1034,7 +1034,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@@ -1034,7 +1034,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
}
}
for(i=min(m_maxY,halfY);i>=m_minY;i--)
for(i=Q_min(m_maxY,halfY);i>=m_minY;i--)
{
for(j=m_RangeStart[1][i];j<=m_RangeEnd[1][i];j++)
{
@ -1055,7 +1055,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@@ -1055,7 +1055,7 @@ int CGraph::FindNearestNode( const Vector &vecOrigin, int afNodeTypes )
@ -3705,7 +3705,7 @@ int CBasePlayer::GiveAmmo( int iCount, const char *szName, int iMax )
@@ -3705,7 +3705,7 @@ int CBasePlayer::GiveAmmo( int iCount, const char *szName, int iMax )
@ -964,7 +964,7 @@ BOOL CBasePlayerWeapon::DefaultReload( int iClipSize, int iAnim, float fDelay, i
@@ -964,7 +964,7 @@ BOOL CBasePlayerWeapon::DefaultReload( int iClipSize, int iAnim, float fDelay, i
@ -1428,7 +1428,7 @@ int CWeaponBox::GiveAmmo( int iCount, const char *szName, int iMax, int *pIndex/
@@ -1428,7 +1428,7 @@ int CWeaponBox::GiveAmmo( int iCount, const char *szName, int iMax, int *pIndex/