summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-16 11:44:04 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-16 11:44:04 +0200
commit69c32376fe6ff99c17662533e9e6999fb24708b0 (patch)
tree9ecd1093f5d6b3f2e626a98ce38a99675a1b4edc /src
parentMore refs removed (diff)
downloadre3-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 'src')
-rw-r--r--src/core/config.h3
-rw-r--r--src/rw/VisibilityPlugins.cpp9
2 files changed, 9 insertions, 3 deletions
diff --git a/src/core/config.h b/src/core/config.h
index f684ed3c..f9edb74a 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -47,7 +47,8 @@ enum Config {
NUM_PATHCONNECTIONS = 10260,
// Link list lengths
- // TODO: alpha list
+ NUMALPHALIST = 20,
+ NUMALPHAENTITYLIST = 150,
NUMCOLCACHELINKS = 200,
NUMREFERENCES = 800,
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;
}