From beea41d465619ce39bdd36824c477b9690a619d5 Mon Sep 17 00:00:00 2001 From: _AG Date: Sat, 22 Jun 2019 11:42:21 +0200 Subject: More CRadar stuff. --- src/entities/CutsceneObject.cpp | 2 +- src/entities/Entity.cpp | 2 +- src/entities/Entity.h | 15 ++++++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src/entities') diff --git a/src/entities/CutsceneObject.cpp b/src/entities/CutsceneObject.cpp index 1e665dd6..163d0513 100644 --- a/src/entities/CutsceneObject.cpp +++ b/src/entities/CutsceneObject.cpp @@ -74,7 +74,7 @@ CCutsceneObject::SetupLighting(void) }else{ CVector coors = GetPosition(); float lighting = CPointLights::GenerateLightsAffectingObject(&coors); - if(!m_flagB20 && lighting != 1.0f){ + if(!bHasBlip && lighting != 1.0f){ SetAmbientAndDirectionalColours(lighting); return true; } diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index 0ab1488d..d2b2577d 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -31,7 +31,7 @@ CEntity::CEntity(void) bIsVisible = true; bHasCollided = false; bRenderScorched = false; - m_flagB20 = false; + bHasBlip = false; bIsBIGBuilding = false; bRenderDamaged = false; diff --git a/src/entities/Entity.h b/src/entities/Entity.h index 95294ed8..0ce47428 100644 --- a/src/entities/Entity.h +++ b/src/entities/Entity.h @@ -5,6 +5,19 @@ struct CReference; +enum eEntityFlags +{ + IS_UNK = 0, + CONTROL_POSTPONED, + IS_EXPLOSIONPROOF, + IS_VISIBLE, + IS_ON_GROUND, + REQUIRES_SCORCHED_LIGHTS, + HAS_BLIP, + IS_BIG_BUILDING, + HAS_BEEN_DAMAGED, +}; + enum eEntityType { ENTITY_TYPE_NOTHING = 0, @@ -59,7 +72,7 @@ public: uint32 bIsVisible : 1; uint32 bHasCollided : 1; // uint32 bRenderScorched : 1; - uint32 m_flagB20 : 1; // bFlashing? + uint32 bHasBlip : 1; uint32 bIsBIGBuilding : 1; // VC inserts one more flag here: if drawdist <= 2000 uint32 bRenderDamaged : 1; -- cgit v1.2.3