From e22db390978230156ac3fc5a461cf8894ad181d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Thu, 4 Jul 2019 16:30:24 +0300 Subject: Little fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: eray orçunus --- src/entities/Ped.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/entities/Ped.cpp b/src/entities/Ped.cpp index 537f089f..9e1836c2 100644 --- a/src/entities/Ped.cpp +++ b/src/entities/Ped.cpp @@ -2073,12 +2073,12 @@ CPed::SetupLighting(void) { ActivateDirectional(); SetAmbientColoursForPedsCarsAndObjects(); - if (m_ped_flagB10) { + if (bRenderScorched) { WorldReplaceNormalLightsWithScorched(Scene.world, 0.1f); } else { // Note that this lightMult is only affected by LIGHT_DARKEN. If there's no LIGHT_DARKEN, it will be 1.0. float lightMult = CPointLights::GenerateLightsAffectingObject(&GetPosition()); - if (!m_ped_flagB20 && lightMult != 1.0f) { + if (!bHasBlip && lightMult != 1.0f) { SetAmbientAndDirectionalColours(lightMult); return true; } @@ -2252,7 +2252,7 @@ CPed::CanPedDriveOff(void) bool CPed::CanPedJumpThis(int32 unused) { - CVector2D forward(-sin(m_fRotationCur), -cos(m_fRotationCur)); + CVector2D forward(-sin(m_fRotationCur), cos(m_fRotationCur)); CVector pos = GetPosition(); // wat? CVector forwardPos( -- cgit v1.2.3