mirror of
https://github.com/halpz/re3.git
synced 2025-07-15 05:38:15 +00:00
rename clamp macro to Clamp to fix compilation with g++11
This commit is contained in:
@ -203,7 +203,7 @@ CWeapon::Fire(CEntity *shooter, CVector *fireSource)
|
||||
else if ( shooter->IsPed() && ((CPed*)shooter)->m_pSeekTarget != nil )
|
||||
{
|
||||
float distToTarget = (shooter->GetPosition() - ((CPed*)shooter)->m_pSeekTarget->GetPosition()).Magnitude();
|
||||
float power = clamp((distToTarget-10.0f)*0.02f, 0.2f, 1.0f);
|
||||
float power = Clamp((distToTarget-10.0f)*0.02f, 0.2f, 1.0f);
|
||||
|
||||
fired = FireProjectile(shooter, source, power);
|
||||
}
|
||||
|
Reference in New Issue
Block a user