summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-08-15 01:28:17 +0200
committerGitHub <noreply@github.com>2020-08-15 01:28:17 +0200
commit07038ce88ec4056d19f999bab177ad02773c0ef9 (patch)
tree090a5779c6fe668d1f39a6d158755023f8fe0cd2 /src/peds/Ped.cpp
parentRemove III files (diff)
parentContinue to Frontend, fix savegame list bug (diff)
downloadre3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar.gz
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar.bz2
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar.lz
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar.xz
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.tar.zst
re3-07038ce88ec4056d19f999bab177ad02773c0ef9.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 26c91abb..d009579c 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -3160,6 +3160,8 @@ CPed::SetStoredObjective(void)
case OBJECTIVE_GOTO_CHAR_ON_FOOT:
case OBJECTIVE_GOTO_CHAR_ON_FOOT_WALKING:
case OBJECTIVE_HASSLE_CHAR:
+ case OBJECTIVE_FOLLOW_CHAR_IN_FORMATION:
+ case OBJECTIVE_LEAVE_CAR:
case OBJECTIVE_ENTER_CAR_AS_PASSENGER:
case OBJECTIVE_ENTER_CAR_AS_DRIVER:
case OBJECTIVE_GOTO_AREA_ON_FOOT:
@@ -4730,9 +4732,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;
}