diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-25 15:48:13 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-25 15:48:13 +0200 |
commit | 16624e174bc8c9e53a59f392b159b529e11ef82c (patch) | |
tree | 4c8a2131d5e58f3da2e2586c201855c01ada14b0 /src/peds/PlayerPed.cpp | |
parent | more CCarCtrl (diff) | |
parent | Merge pull request #196 from erorcun/erorcun (diff) | |
download | re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar.gz re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar.bz2 re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar.lz re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar.xz re3-16624e174bc8c9e53a59f392b159b529e11ef82c.tar.zst re3-16624e174bc8c9e53a59f392b159b529e11ef82c.zip |
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r-- | src/peds/PlayerPed.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 361a9098..5ae8c4be 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -57,8 +57,8 @@ CPlayerPed::CPlayerPed(void) : CPed(PEDTYPE_PLAYER1) void CPlayerPed::ClearWeaponTarget() { - if (!m_nPedType) { - m_pPointGunAt = 0; + if (m_nPedType == PEDTYPE_PLAYER1) { + m_pPointGunAt = nil; TheCamera.ClearPlayerWeaponMode(); CWeaponEffects::ClearCrosshair(); } @@ -79,12 +79,12 @@ CPlayerPed::SetWantedLevelNoDrop(int32 level) // I don't know the actual purpose of parameter void -CPlayerPed::AnnoyPlayerPed(bool itsPolice) +CPlayerPed::AnnoyPlayerPed(bool annoyedByPassingEntity) { if (m_pedStats->m_temper < 52) { m_pedStats->m_temper++; } else { - if (itsPolice) { + if (annoyedByPassingEntity) { if (m_pedStats->m_temper < 55) { m_pedStats->m_temper++; } else { |