mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Use global for m_maxAllowedExtras
This commit is contained in:
parent
8628479abb
commit
8804a95aea
@ -503,7 +503,7 @@ void LegoAnimationManager::Init()
|
|||||||
m_unk0x1a = FALSE;
|
m_unk0x1a = FALSE;
|
||||||
m_tranInfoList = NULL;
|
m_tranInfoList = NULL;
|
||||||
m_tranInfoList2 = NULL;
|
m_tranInfoList2 = NULL;
|
||||||
m_maxAllowedExtras = g_legoAnimationManagerConfig;
|
// m_maxAllowedExtras = g_legoAnimationManagerConfig;
|
||||||
|
|
||||||
MxS32 i;
|
MxS32 i;
|
||||||
for (i = 0; i < (MxS32) sizeOfArray(m_unk0x28); i++) {
|
for (i = 0; i < (MxS32) sizeOfArray(m_unk0x28); i++) {
|
||||||
@ -1576,7 +1576,7 @@ MxResult LegoAnimationManager::Tickle()
|
|||||||
if (elapsedSeconds > 0.2 && m_numAllowedExtras > 2) {
|
if (elapsedSeconds > 0.2 && m_numAllowedExtras > 2) {
|
||||||
m_numAllowedExtras--;
|
m_numAllowedExtras--;
|
||||||
}
|
}
|
||||||
else if (g_unk0x100f7500 < 0.16 && m_numAllowedExtras < m_maxAllowedExtras) {
|
else if (g_unk0x100f7500 < 0.16 && m_numAllowedExtras < g_legoAnimationManagerConfig) {
|
||||||
m_numAllowedExtras++;
|
m_numAllowedExtras++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user