summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-25 15:48:03 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-25 15:48:03 +0200
commit7ddfc4067529e6635b29cc0805a4cc927b37bbf3 (patch)
treec68d7c956619f68a5928ed00fabbc00f6061aa44 /src/weapons
parentfixed flight control code (diff)
parentfixed shooting target (diff)
downloadre3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar.gz
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar.bz2
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar.lz
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar.xz
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.tar.zst
re3-7ddfc4067529e6635b29cc0805a4cc927b37bbf3.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 54e73a41..a3d52f69 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -600,8 +600,8 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
rotOffset.Normalise();
target = *fireSource;
- target.x = rotOffset.x * info->m_fRange;
- target.y = rotOffset.y * info->m_fRange;
+ target.x += rotOffset.x * info->m_fRange;
+ target.y += rotOffset.y * info->m_fRange;
if ( shooter->IsPed() )
DoDoomAiming(shooter, fireSource, &target);