diff options
author | aap <aap@papnet.eu> | 2019-06-22 21:30:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 21:30:43 +0200 |
commit | 69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4 (patch) | |
tree | bed5e59372762394a8a564dac5cb3de06fdd22aa /src/entities | |
parent | Merge pull request #32 from Nick007J/master (diff) | |
parent | More CRadar stuff. (diff) | |
download | re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar.gz re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar.bz2 re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar.lz re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar.xz re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.tar.zst re3-69dd259b70fb6bc72722f0cea9b0b4d8a5653fa4.zip |
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/CutsceneObject.cpp | 2 | ||||
-rw-r--r-- | src/entities/Entity.cpp | 2 | ||||
-rw-r--r-- | src/entities/Entity.h | 15 |
3 files changed, 16 insertions, 3 deletions
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; |