rename clamp macro to Clamp to fix compilation with g++11 (and clamp2 for consistency sake)
This commit is contained in:
@@ -52,11 +52,11 @@ CDoor::Process(CVehicle *vehicle)
|
||||
fSpeedDiff = vecSpeedDiff.y - vecSpeedDiff.x;
|
||||
break;
|
||||
}
|
||||
fSpeedDiff = clamp(fSpeedDiff, -0.2f, 0.2f);
|
||||
fSpeedDiff = Clamp(fSpeedDiff, -0.2f, 0.2f);
|
||||
if(Abs(fSpeedDiff) > 0.002f)
|
||||
m_fAngVel += fSpeedDiff;
|
||||
m_fAngVel *= 0.945f;
|
||||
m_fAngVel = clamp(m_fAngVel, -0.3f, 0.3f);
|
||||
m_fAngVel = Clamp(m_fAngVel, -0.3f, 0.3f);
|
||||
|
||||
m_fAngle += m_fAngVel;
|
||||
m_nDoorState = DOORST_SWINGING;
|
||||
|
||||
Reference in New Issue
Block a user