1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 08:00:01 +00:00

Increase alpha entity list capacity for wide screen

This commit is contained in:
Sergeanur 2020-04-16 12:44:04 +03:00
parent b1fc7bc533
commit 69c32376fe
2 changed files with 9 additions and 3 deletions

View file

@ -47,7 +47,8 @@ enum Config {
NUM_PATHCONNECTIONS = 10260, NUM_PATHCONNECTIONS = 10260,
// Link list lengths // Link list lengths
// TODO: alpha list NUMALPHALIST = 20,
NUMALPHAENTITYLIST = 150,
NUMCOLCACHELINKS = 200, NUMCOLCACHELINKS = 200,
NUMREFERENCES = 800, NUMREFERENCES = 800,

View file

@ -33,10 +33,15 @@ float CVisibilityPlugins::ms_pedFadeDist;// = *(float*)0x8E2C34;
void void
CVisibilityPlugins::Initialise(void) CVisibilityPlugins::Initialise(void)
{ {
m_alphaList.Init(20); m_alphaList.Init(NUMALPHALIST);
m_alphaList.head.item.sort = 0.0f; m_alphaList.head.item.sort = 0.0f;
m_alphaList.tail.item.sort = 100000000.0f; m_alphaList.tail.item.sort = 100000000.0f;
m_alphaEntityList.Init(150); #ifdef ASPECT_RATIO_SCALE
// default 150 if not enough for bigger FOVs
m_alphaEntityList.Init(NUMALPHAENTITYLIST * 3);
#else
m_alphaEntityList.Init(NUMALPHAENTITYLIST);
#endif // ASPECT_RATIO_SCALE
m_alphaEntityList.head.item.sort = 0.0f; m_alphaEntityList.head.item.sort = 0.0f;
m_alphaEntityList.tail.item.sort = 100000000.0f; m_alphaEntityList.tail.item.sort = 100000000.0f;
} }