diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-08-13 22:39:55 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-08-14 00:14:04 +0200 |
commit | b54bb62c944f8f3e8d85501fbb762915fdc6569b (patch) | |
tree | 94ed5d0f70006246329d852127feea87f610ccba /src/peds/Ped.cpp | |
parent | fixes to HUD and sprite2d (diff) | |
download | re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar.gz re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar.bz2 re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar.lz re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar.xz re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.tar.zst re3-b54bb62c944f8f3e8d85501fbb762915fdc6569b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 26c91abb..be8b28e3 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -4730,9 +4730,11 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi } else { CDarkel::RegisterKillNotByPlayer(this, method); } - if (method == WEAPONTYPE_DROWNING) + if (method == WEAPONTYPE_DROWNING) { bIsInTheAir = false; - // TODO(Miami): timesDrowned + if (FindPlayerPed() == this) + CStats::TimesDrowned++; + } return true; } |