diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-16 11:44:04 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-16 11:44:04 +0200 |
commit | 69c32376fe6ff99c17662533e9e6999fb24708b0 (patch) | |
tree | 9ecd1093f5d6b3f2e626a98ce38a99675a1b4edc /src/rw/VisibilityPlugins.cpp | |
parent | More refs removed (diff) | |
download | re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar.gz re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar.bz2 re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar.lz re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar.xz re3-69c32376fe6ff99c17662533e9e6999fb24708b0.tar.zst re3-69c32376fe6ff99c17662533e9e6999fb24708b0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index def3b23e..5438ed0f 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -33,10 +33,15 @@ float CVisibilityPlugins::ms_pedFadeDist;// = *(float*)0x8E2C34; void CVisibilityPlugins::Initialise(void) { - m_alphaList.Init(20); + m_alphaList.Init(NUMALPHALIST); m_alphaList.head.item.sort = 0.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.tail.item.sort = 100000000.0f; } |