summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-04 15:39:31 +0200
committerGitHub <noreply@github.com>2019-07-04 15:39:31 +0200
commitbdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4 (patch)
tree5f837ad142aa7f45e6b5287caeb401366ed5650a
parentMerge pull request #109 from erorcun/erorcun (diff)
parentLittle fixes (diff)
downloadre3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar.gz
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar.bz2
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar.lz
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar.xz
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.tar.zst
re3-bdd5ed6a20bca63fffe7a7aa1ed2265bd53372f4.zip
-rw-r--r--src/entities/Ped.cpp6
1 files changed, 3 insertions, 3 deletions
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(