mirror of
https://github.com/halpz/re3.git
synced 2025-05-12 05:46:39 +03:00
Adding getters and setters for type and status
This commit is contained in:
parent
cf5a404f6b
commit
7d758f3a9f
41 changed files with 256 additions and 249 deletions
|
@ -382,7 +382,7 @@ CRenderer::SetupEntityVisibility(CEntity *ent)
|
|||
}
|
||||
return VIS_INVISIBLE;
|
||||
}
|
||||
if(ent->m_type == ENTITY_TYPE_OBJECT &&
|
||||
if(ent->IsObject() &&
|
||||
((CObject*)ent)->ObjectCreatedBy == TEMP_OBJECT){
|
||||
if(ent->m_rwObject == nil || !ent->bIsVisible)
|
||||
return VIS_INVISIBLE;
|
||||
|
@ -399,7 +399,7 @@ CRenderer::SetupEntityVisibility(CEntity *ent)
|
|||
if(LOD_DISTANCE + STREAM_DISTANCE < dist && dist < mi->GetLargestLodDistance())
|
||||
dist = mi->GetLargestLodDistance();
|
||||
|
||||
if(ent->m_type == ENTITY_TYPE_OBJECT && ent->bRenderDamaged)
|
||||
if(ent->IsObject() && ent->bRenderDamaged)
|
||||
mi->m_isDamaged = true;
|
||||
|
||||
RpAtomic *a = mi->GetAtomicFromDistance(dist);
|
||||
|
@ -1162,7 +1162,7 @@ CRenderer::IsEntityCullZoneVisible(CEntity *ent)
|
|||
if(ent->bZoneCulled)
|
||||
return false;
|
||||
|
||||
switch(ent->m_type){
|
||||
switch(ent->GetType()){
|
||||
case ENTITY_TYPE_VEHICLE:
|
||||
return IsVehicleCullZoneVisible(ent);
|
||||
case ENTITY_TYPE_PED:
|
||||
|
@ -1187,7 +1187,7 @@ bool
|
|||
CRenderer::IsVehicleCullZoneVisible(CEntity *ent)
|
||||
{
|
||||
CVehicle *v = (CVehicle*)ent;
|
||||
switch(v->m_status)
|
||||
switch(v->GetStatus())
|
||||
case STATUS_SIMPLE:
|
||||
case STATUS_PHYSICS:
|
||||
case STATUS_ABANDONED:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue