summaryrefslogtreecommitdiff
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-09-26 20:11:25 +0200
committerGitHub <noreply@github.com>2020-09-26 20:11:25 +0200
commitdb1137b5a1fba7dde4b1493f9ddd01890a6af801 (patch)
treedf6fcb6dfd0364957e594e46da468cfa47b55148 /src/weapons/Weapon.cpp
parent05e65baabe3e941cbbb546f546bae8719974b00f (diff)
parent2eb2e9ac12e66d3520d88547037217b53997b1fb (diff)
Merge pull request #715 from Nick007J/master
some SilentPatch fixes
Diffstat (limited to 'src/weapons/Weapon.cpp')
-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 )