mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Implement/match LegoAnimationManager::AddExtra (#901)
* Implement/match LegoAnimationManager::AddExtra * Rename member * Fix param names * Remove space
This commit is contained in:
committed by
GitHub
parent
a1388adcd7
commit
d9a82323ca
@@ -487,15 +487,15 @@ void Isle::Enable(MxBool p_enable)
|
||||
FUN_1003ef00(TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x018 == 0) {
|
||||
MxU32 cameraLocations[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
|
||||
MxS32 locations[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
|
||||
|
||||
for (MxU32 i = 0; i < 5; i++) {
|
||||
MxS32 r = rand() % 5;
|
||||
|
||||
for (MxU32 j = 0; j < _countof(cameraLocations); j++) {
|
||||
if (cameraLocations[j] != 0 && r-- == 0) {
|
||||
AnimationManager()->AddExtra(cameraLocations[j], TRUE);
|
||||
cameraLocations[j] = 0;
|
||||
for (MxU32 j = 0; j < _countof(locations); j++) {
|
||||
if (locations[j] != 0 && r-- == 0) {
|
||||
AnimationManager()->AddExtra(locations[j], TRUE);
|
||||
locations[j] = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user