fixed shooting target

This commit is contained in:
aap 2020-04-25 14:37:58 +02:00
parent 241352e312
commit 8289b42c9e

View File

@ -600,8 +600,8 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
rotOffset.Normalise(); rotOffset.Normalise();
target = *fireSource; target = *fireSource;
target.x = rotOffset.x * info->m_fRange; target.x += rotOffset.x * info->m_fRange;
target.y = rotOffset.y * info->m_fRange; target.y += rotOffset.y * info->m_fRange;
if ( shooter->IsPed() ) if ( shooter->IsPed() )
DoDoomAiming(shooter, fireSource, &target); DoDoomAiming(shooter, fireSource, &target);