mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-22 19:00:07 +00:00
renderer fix from miami
This commit is contained in:
parent
f61a91c97d
commit
da378077f7
|
@ -1396,6 +1396,10 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL
|
||||||
void
|
void
|
||||||
CRenderer::InsertEntityIntoList(CEntity *ent)
|
CRenderer::InsertEntityIntoList(CEntity *ent)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (!ent->m_rwObject) return;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NEW_RENDERER
|
#ifdef NEW_RENDERER
|
||||||
// TODO: there are more flags being checked here
|
// TODO: there are more flags being checked here
|
||||||
if(gbNewRenderer && (ent->IsVehicle() || ent->IsPed()))
|
if(gbNewRenderer && (ent->IsVehicle() || ent->IsPed()))
|
||||||
|
|
|
@ -192,6 +192,10 @@ CVisibilityPlugins::InitAlphaEntityList(void)
|
||||||
bool
|
bool
|
||||||
CVisibilityPlugins::InsertEntityIntoSortedList(CEntity *e, float dist)
|
CVisibilityPlugins::InsertEntityIntoSortedList(CEntity *e, float dist)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (!e->m_rwObject) return true;
|
||||||
|
#endif
|
||||||
|
|
||||||
AlphaObjectInfo item;
|
AlphaObjectInfo item;
|
||||||
item.entity = e;
|
item.entity = e;
|
||||||
item.sort = dist;
|
item.sort = dist;
|
||||||
|
|
Loading…
Reference in a new issue