mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-24 01:59:15 +01:00
fix
This commit is contained in:
parent
b14e034344
commit
1748aabd69
@ -4370,6 +4370,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (bInVehicle) {
|
if (bInVehicle) {
|
||||||
if (method != WEAPONTYPE_DROWNING) {
|
if (method != WEAPONTYPE_DROWNING) {
|
||||||
if (m_pMyVehicle) {
|
if (m_pMyVehicle) {
|
||||||
|
CVehicle* pVehicle = m_pMyVehicle;
|
||||||
bool bDone = false;
|
bool bDone = false;
|
||||||
if (m_pMyVehicle->IsBike()) {
|
if (m_pMyVehicle->IsBike()) {
|
||||||
m_fHealth = 0.0f;
|
m_fHealth = 0.0f;
|
||||||
@ -4405,13 +4406,13 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int i = 0; i < ARRAY_SIZE(m_pMyVehicle->pPassengers); i++) {
|
for (int i = 0; i < ARRAY_SIZE(pVehicle->pPassengers); i++) {
|
||||||
CPed* passenger = m_pMyVehicle->pPassengers[i];
|
CPed* passenger = pVehicle->pPassengers[i];
|
||||||
if (passenger && passenger != this && damagedBy)
|
if (passenger && passenger != this && damagedBy)
|
||||||
passenger->ReactToAttack(damagedBy);
|
passenger->ReactToAttack(damagedBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
CPed *driverOfVeh = m_pMyVehicle->pDriver;
|
CPed *driverOfVeh = pVehicle->pDriver;
|
||||||
if (driverOfVeh && driverOfVeh != this && damagedBy)
|
if (driverOfVeh && driverOfVeh != this && damagedBy)
|
||||||
driverOfVeh->ReactToAttack(damagedBy);
|
driverOfVeh->ReactToAttack(damagedBy);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user