More cleanup

This commit is contained in:
jonschz 2025-07-13 08:14:20 +02:00
parent 72c39c733a
commit da7291afb1

View File

@ -176,7 +176,6 @@ void Act3List::Clear()
// FUNCTION: LEGO1 0x100720d0 // FUNCTION: LEGO1 0x100720d0
void Act3List::FUN_100720d0(MxU32 p_objectId) void Act3List::FUN_100720d0(MxU32 p_objectId)
{ {
// LINE: LEGO1 0x100720db
if (m_unk0x0c) { if (m_unk0x0c) {
return; return;
} }
@ -189,17 +188,14 @@ void Act3List::FUN_100720d0(MxU32 p_objectId)
// Removing it decreases the match. // Removing it decreases the match.
Act3List::iterator it3; Act3List::iterator it3;
// LINE: LEGO1 0x100720e6
if (!empty()) { if (!empty()) {
if (!p_objectId) { if (!p_objectId) {
// LINE: LEGO1 0x10072131
pop_front(); pop_front();
removed = TRUE; removed = TRUE;
} }
else { else {
// LINE: LEGO1 0x100720fa
for (it = begin(); it != end(); it++) { for (it = begin(); it != end(); it++) {
Act3ListElement& current = *it; Act3ListElement& current = *it;
// No idea why `current` is used in one but not the other, // No idea why `current` is used in one but not the other,
@ -216,7 +212,6 @@ void Act3List::FUN_100720d0(MxU32 p_objectId)
} }
if (removed && size() > 0) { if (removed && size() > 0) {
// LINE: LEGO1 0x1007215f
it = begin(); it = begin();
it3 = it; it3 = it;
@ -224,15 +219,10 @@ void Act3List::FUN_100720d0(MxU32 p_objectId)
it++; it++;
for (; it != end();) { for (; it != end();) {
// LINE: LEGO1 0x1007217c
if ((*it).m_unk0x04 == 1) { if ((*it).m_unk0x04 == 1) {
// LINE: LEGO1 0x100721a0
for (Act3List::iterator it2 = begin(); it2 != it;) { for (Act3List::iterator it2 = begin(); it2 != it;) {
// LINE: LEGO1 0x10072191
if ((*it2).m_hasStarted) { if ((*it2).m_hasStarted) {
// LINE: LEGO1 0x10072202
DeleteActionWrapper(); DeleteActionWrapper();
// LINE: LEGO1 0x10072209
return; return;
} }
erase(it2++); erase(it2++);
@ -242,11 +232,8 @@ void Act3List::FUN_100720d0(MxU32 p_objectId)
} }
} }
// LINE: LEGO1 0x100721d4
if (!firstItem.m_hasStarted) { if (!firstItem.m_hasStarted) {
// LINE: LEGO1 0x100721de
firstItem.m_hasStarted = TRUE; firstItem.m_hasStarted = TRUE;
// // LINE: LEGO1 0x100721e4
InvokeAction(Extra::e_start, *g_act3Script, firstItem.m_objectId, NULL); InvokeAction(Extra::e_start, *g_act3Script, firstItem.m_objectId, NULL);
} }
} }