Use global for m_maxAllowedExtras

This commit is contained in:
Christian Semmler 2025-06-09 17:43:25 -07:00
parent 8628479abb
commit 8804a95aea

View File

@ -503,7 +503,7 @@ void LegoAnimationManager::Init()
m_unk0x1a = FALSE;
m_tranInfoList = NULL;
m_tranInfoList2 = NULL;
m_maxAllowedExtras = g_legoAnimationManagerConfig;
// m_maxAllowedExtras = g_legoAnimationManagerConfig;
MxS32 i;
for (i = 0; i < (MxS32) sizeOfArray(m_unk0x28); i++) {
@ -1576,7 +1576,7 @@ MxResult LegoAnimationManager::Tickle()
if (elapsedSeconds > 0.2 && m_numAllowedExtras > 2) {
m_numAllowedExtras--;
}
else if (g_unk0x100f7500 < 0.16 && m_numAllowedExtras < m_maxAllowedExtras) {
else if (g_unk0x100f7500 < 0.16 && m_numAllowedExtras < g_legoAnimationManagerConfig) {
m_numAllowedExtras++;
}
}