diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-09-24 13:33:16 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-10-26 13:05:00 +0200 |
commit | d2941b03689575fc0158683daae7883402a92651 (patch) | |
tree | b12477e0091c20c9dde90872919c4431e4e0195f /src/peds | |
parent | More work (diff) | |
download | re3-d2941b03689575fc0158683daae7883402a92651.tar re3-d2941b03689575fc0158683daae7883402a92651.tar.gz re3-d2941b03689575fc0158683daae7883402a92651.tar.bz2 re3-d2941b03689575fc0158683daae7883402a92651.tar.lz re3-d2941b03689575fc0158683daae7883402a92651.tar.xz re3-d2941b03689575fc0158683daae7883402a92651.tar.zst re3-d2941b03689575fc0158683daae7883402a92651.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 11141b04..f5cec4f4 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -4388,7 +4388,7 @@ CPed::SetEvasiveStep(CEntity *reason, uint8 animType) neededTurn = 2 * PI - neededTurn; CVehicle *veh = (CVehicle*)reason; - if (reason->IsVehicle() && veh->m_vehType == VEHICLE_TYPE_CAR) { + if (reason->IsVehicle() && veh->m_vehType == VEHICLE_TYPE_AUTOMOBILE) { if (veh->m_nCarHornTimer) { vehPressedHorn = true; if (!IsPlayer()) @@ -4456,7 +4456,7 @@ CPed::SetEvasiveDive(CPhysical *reason, uint8 onlyRandomJump) angleToFace = m_fRotationCur; CVehicle *veh = (CVehicle*) reason; - if (reason->IsVehicle() && veh->m_vehType == VEHICLE_TYPE_CAR && veh->m_nCarHornTimer && !IsPlayer()) { + if (reason->IsVehicle() && veh->m_vehType == VEHICLE_TYPE_AUTOMOBILE && veh->m_nCarHornTimer && !IsPlayer()) { onlyRandomJump = true; } @@ -7245,7 +7245,7 @@ CPed::Seek(void) false, true, false, false, false, false); if (obstacle) { - if (!obstacle->IsVehicle() || ((CVehicle*)obstacle)->m_vehType == VEHICLE_TYPE_CAR) { + if (!obstacle->IsVehicle() || ((CVehicle*)obstacle)->m_vehType == VEHICLE_TYPE_AUTOMOBILE) { distanceToCountItDone = 2.5f; } else { CVehicleModelInfo *vehModel = (CVehicleModelInfo*) CModelInfo::GetModelInfo(obstacle->m_modelIndex); @@ -8481,7 +8481,7 @@ CPed::KillPedWithCar(CVehicle *car, float impulse) if (damageDir > 3) damageDir = damageDir - 4; - if (car->m_vehType == VEHICLE_TYPE_CAR) { + if (car->m_vehType == VEHICLE_TYPE_AUTOMOBILE) { CObject *bonnet = ((CAutomobile*)car)->RemoveBonnetInPedCollision(); if (bonnet) { |