mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
Renderer fix
This commit is contained in:
parent
2b53f267a7
commit
87e6edd554
@ -1188,7 +1188,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
|
|||||||
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
|
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
|
||||||
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
|
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
|
||||||
mi->IncreaseAlpha();
|
mi->IncreaseAlpha();
|
||||||
if(!ent->IsVisibleComplex() || ent->IsEntityOccluded()){
|
if(!ent->IsVisible() || !ent->GetIsOnScreenComplex() || ent->IsEntityOccluded()){
|
||||||
mi->m_alpha = 255;
|
mi->m_alpha = 255;
|
||||||
return VIS_INVISIBLE;
|
return VIS_INVISIBLE;
|
||||||
}
|
}
|
||||||
@ -1232,7 +1232,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
|
|||||||
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
|
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
|
||||||
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
|
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
|
||||||
mi->IncreaseAlpha();
|
mi->IncreaseAlpha();
|
||||||
if(!ent->IsVisibleComplex() || ent->IsEntityOccluded()){
|
if(!ent->IsVisible() || !ent->GetIsOnScreenComplex() || ent->IsEntityOccluded()){
|
||||||
mi->m_alpha = 255;
|
mi->m_alpha = 255;
|
||||||
return VIS_INVISIBLE;
|
return VIS_INVISIBLE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user