mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 15:20:34 +00:00
rename clamp macro to Clamp to fix compilation with g++11
This commit is contained in:
parent
cc235be3aa
commit
cb3b3855b8
31 changed files with 116 additions and 116 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue