mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2.
This commit is contained in:
@ -510,7 +510,7 @@ CAI_Hint *CAI_HintManager::FindHint( CAI_BaseNPC *pNPC, const Vector &position,
|
||||
pNPC ? pNPC->entindex() : -1,
|
||||
position.x, position.y, position.z,
|
||||
timer.GetDuration().GetMillisecondsF(),
|
||||
timer.GetDuration().GetMillisecondsF()/max( (float)visited, 1.0f ) );
|
||||
timer.GetDuration().GetMillisecondsF()/MAX( (float)visited, 1.0f ) );
|
||||
}
|
||||
#endif
|
||||
return pBestHint;
|
||||
@ -1424,7 +1424,7 @@ int CAI_Hint::DrawDebugTextOverlays(void)
|
||||
Q_snprintf(tempstr,sizeof(tempstr),"%s (%i)", GetHintTypeDescription( HintType() ), HintType());
|
||||
EntityText(text_offset,tempstr,0);
|
||||
text_offset++;
|
||||
Q_snprintf(tempstr,sizeof(tempstr),"delay %f", max( 0.0f, m_flNextUseTime - gpGlobals->curtime ) ) ;
|
||||
Q_snprintf(tempstr,sizeof(tempstr),"delay %f", MAX( 0.0f, m_flNextUseTime - gpGlobals->curtime ) ) ;
|
||||
EntityText(text_offset,tempstr,0);
|
||||
text_offset++;
|
||||
|
||||
|
Reference in New Issue
Block a user