diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-03-07 20:22:43 +0100 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-03-11 22:48:33 +0100 |
commit | 934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b (patch) | |
tree | 26b313998ecea484fc7d81d32c1bdfc8b19deacf /src/render | |
parent | Merge pull request #342 from Nick007J/master (diff) | |
download | re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.gz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.bz2 re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.lz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.xz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.zst re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Hud.cpp | 9 | ||||
-rw-r--r-- | src/render/Shadows.h | 3 |
2 files changed, 6 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; } } diff --git a/src/render/Shadows.h b/src/render/Shadows.h index c12327b1..8af8d02d 100644 --- a/src/render/Shadows.h +++ b/src/render/Shadows.h @@ -178,3 +178,6 @@ public: extern RwTexture *&gpBloodPoolTex; extern RwTexture *&gpShadowExplosionTex; extern RwTexture *&gpShadowHeadLightsTex; +extern RwTexture *&gpOutline1Tex; +extern RwTexture *&gpOutline2Tex; +extern RwTexture *&gpOutline3Tex; |