summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-26 12:30:22 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-26 12:30:22 +0200
commitb42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9 (patch)
tree84d1bb921722801784283e70667b93b8a7ee4dc1 /src/weapons
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar.gz
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar.bz2
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar.lz
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar.xz
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.tar.zst
re3-b42d9e3e7c1caf6ad06ad81eb34cc27e09bd9bb9.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index aea14f6a..37f59c95 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -1608,6 +1608,9 @@ CWeapon::FireM16_1stPerson(CEntity *shooter)
if ( shooter == FindPlayerPed() )
{
+#ifdef FIX_BUGS
+ CStats::InstantHitsFiredByPlayer++;
+#endif
CPad::GetPad(0)->StartShake_Distance(240, 128, FindPlayerPed()->GetPosition().x, FindPlayerPed()->GetPosition().y, FindPlayerPed()->GetPosition().z);
if ( m_eWeaponType == WEAPONTYPE_M16 )