summaryrefslogtreecommitdiffstats
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-25 14:37:58 +0200
committeraap <aap@papnet.eu>2020-04-25 14:37:58 +0200
commit8289b42c9e41c5370723438e5eff9b2fa27e6069 (patch)
tree249d184993ebd40e53406139a17fc80b254e01b6 /src/weapons/Weapon.cpp
parentreal names (from LCS) (diff)
downloadre3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar.gz
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar.bz2
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar.lz
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar.xz
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.tar.zst
re3-8289b42c9e41c5370723438e5eff9b2fa27e6069.zip
Diffstat (limited to '')
-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);