diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-12 00:33:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 00:33:55 +0100 |
commit | 3e78600420e4ba0f49a140dd365f44fd600ec057 (patch) | |
tree | df50a5dc9037b336d48e12bfc8f2394592808c8e /src/render/Hud.cpp | |
parent | Merge pull request #343 from Nick007J/master (diff) | |
parent | Merge branch 'master' into erorcun (diff) | |
download | re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.gz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.bz2 re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.lz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.xz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.zst re3-3e78600420e4ba0f49a140dd365f44fd600ec057.zip |
Diffstat (limited to 'src/render/Hud.cpp')
-rw-r--r-- | src/render/Hud.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index be7329e2..b87f7c71 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -130,12 +130,9 @@ void CHud::Draw() Draw Crosshairs */ if (TheCamera.Cams->Using3rdPersonMouseCam() && (!CPad::GetPad(0)->GetLookBehindForPed() || TheCamera.m_bPlayerIsInGarage) || Mode == CCam::MODE_1STPERSON_RUNABOUT) { - if (FindPlayerPed()) { - int32 State = FindPlayerPed()->m_nPedState; - if (State != PED_ENTER_CAR && State != PED_CARJACK) { - if ((WeaponType >= WEAPONTYPE_COLT45 && WeaponType <= WEAPONTYPE_M16) || WeaponType == WEAPONTYPE_FLAMETHROWER) - Mode_RunAround = 1; - } + if (FindPlayerPed() && !FindPlayerPed()->EnteringCar()) { + if ((WeaponType >= WEAPONTYPE_COLT45 && WeaponType <= WEAPONTYPE_M16) || WeaponType == WEAPONTYPE_FLAMETHROWER) + Mode_RunAround = 1; } } |