Merge pull request #30 from gennariarmando/master

More CRadar stuff.
This commit is contained in:
aap
2019-06-22 21:30:43 +02:00
committed by GitHub
5 changed files with 142 additions and 24 deletions

View File

@ -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;
}

View File

@ -31,7 +31,7 @@ CEntity::CEntity(void)
bIsVisible = true;
bHasCollided = false;
bRenderScorched = false;
m_flagB20 = false;
bHasBlip = false;
bIsBIGBuilding = false;
bRenderDamaged = false;

View File

@ -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;