diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-30 20:26:36 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-30 20:26:36 +0200 |
commit | 138abb91f6232ef40e1093b3c37122e1b0bf2cf1 (patch) | |
tree | c4c694734bb56c29ddf8b5bbd891741540a7c68b /src/weapons | |
parent | Fix script load (diff) | |
parent | Pause radio when game is paused (diff) | |
download | re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar.gz re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar.bz2 re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar.lz re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar.xz re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.tar.zst re3-138abb91f6232ef40e1093b3c37122e1b0bf2cf1.zip |
Diffstat (limited to 'src/weapons')
-rw-r--r-- | src/weapons/Weapon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index d7c0bff0..1f98cb2b 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -252,7 +252,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); } |